Function at 0x10126c50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x101b0cd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp + 0x20]
push ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], 0
push 1
call fcn.10129670
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add esp, 0xc
test eax, eax
je 0x10126eee
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov eax, 0xf4240
mov dword [ecx + 0x258], eax
mov dword [edx + 0x25c], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
push 0x40
push fcn.10151f8c
push ecx
mov dword [eax + 0x260], 0
call fcn.10125550
push 0
push eax
call fcn.10151f10
add esp, 0x14
test eax, eax
je 0x10126cf7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x58]
push eax
push ecx
push edx
call fcn.101297e0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x58]
push ecx
push edx
push eax
call fcn.101255d0
add esp, 0x20
cmp dword [ebp - 0x60], 0
je 0x10126d63
xor esi, esi
lea esp, [esp]
push 0
call fcn.10125df0
mov ecx, dword [ebp - 0x60]
mov dl, byte [ecx + esi]
add esp, 4
cmp dl, byte [eax + esi]
je 0x10126d4f
mov eax, dword [ebp - 0x58]
or dword [eax + 0x70], 0x20000
push 0
call fcn.10125df0
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x10126d30
jmp 0x10126d6d
mov eax, dword [ebp - 0x58]
or dword [eax + 0x70], 0x20000
mov ecx, dword [ebp - 0x58]
test dword [ecx + 0x70], 0x20000
je 0x10126de9
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x10126ddf
push 0
call fcn.10125df0
mov cl, byte [esi]
add esp, 4
cmp cl, byte [eax]
jne 0x10126db2
cmp cl, 0x31
jne 0x10126da7
push 0
call fcn.10125df0
mov dl, byte [esi + 2]
add esp, 4
cmp dl, byte [eax + 2]
jne 0x10126db2
cmp byte [esi], 0x30
jne 0x10126de9
cmp byte [esi + 2], 0x39
jge 0x10126de9
test esi, esi
je 0x10126ddf
push 0
call fcn.10125df0
push eax
push esi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.10152b9d
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
push ecx
push edx
call fcn.101255f0
add esp, 0x20
mov esi, 1
mov dword [ebp - 0x5c], esi
jmp 0x10126dee
mov esi, 1
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x10126e30
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 0x58]
push eax
push ecx
call fcn.101298d0
mov edx, dword [ebp - 0x58]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 0x58]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x10126e30
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x98], 0x101258a0
mov ecx, dword [ebp - 0x58]
mov dword [edx + 0x9c], fcn.101258f0
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x10126e7b.0
mov eax, dword [ebp - 0x58]
push 0x38
add eax, 0x78
push 0x1016c754
push eax
call fcn.1014ac30
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x10126e7b.5
jmp dword [eax*4 + 0x10126f44]
push str.zlib_memory_error
jmp 0x10126ea4
mov edx, dword [ebp - 0x58]
push str.zlib_stream_error
push edx
jmp 0x10126ea8
mov eax, dword [ebp - 0x58]
push str.zlib_version_error
push eax
jmp 0x10126ea8
push str.Unknown_zlib_error
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.101255f0
mov dword [ebp - 0x5c], esi
add esp, 8
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
test edx, edx
je 0x10126eff
mov ecx, dword [eax + 0xb0]
mov edx, dword [ebp - 0x58]
push ecx
push edx
call fcn.101298a0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
push ecx
mov dword [eax + 0xb0], 0
mov eax, dword [ebp - 0x58]
push edx
push eax
call fcn.10129720
add esp, 0x14
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005392f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x84], edx
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 0x58]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.101286b0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.1005392f
mov esp, ebp
pop ebp
ret