Function at 0x54a4c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x6687b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x64], str.1.5.0
push 0x2b0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x88], 0x2b0
call fcn.005d3435
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [ebp - 0x90], esi
je 0x54a528
push 0x2b0
push edi
push esi
call fcn.005da970
add esp, 0xc
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x54a6c1
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov eax, 0xf4240
mov dword [ecx + 0x258], eax
mov dword [edx + 0x25c], eax
mov eax, dword [ebp - 0x5c]
cmp eax, edi
mov dword [ebp - 0x7c], eax
je 0x54a566
mov dword [eax + 0x40], fcn.005da06c
jmp 0x54a568
xor eax, eax
push edi
push eax
mov dword [ebp - 0x80], eax
call fcn.005f4cf0
add esp, 8
test eax, eax
je 0x54a580
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x54a5a2
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x238], ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x23c], edx
mov dword [eax + 0x240], ecx
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x54a5be
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp - 0x74]
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], edx
mov edx, dword [ebp - 0x64]
cmp edx, edi
mov esi, 0x20000
je 0x54a5e7
mov eax, str.1.5.0
sub edx, eax
mov cl, byte [edx + eax]
cmp cl, byte [eax]
je 0x54a5de
mov ecx, dword [ebp - 0x5c]
or dword [ecx + 0x70], esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54a5d1
mov edx, dword [ebp - 0x5c]
test dword [edx + 0x70], esi
je 0x54a630
mov eax, dword [ebp - 0x64]
cmp eax, edi
je 0x54a629
cmp byte [eax], 0x31
jne 0x54a601
cmp byte [eax + 2], 0x35
je 0x54a630
cmp eax, edi
je 0x54a629
push str.1.5.0
push eax
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.005d7813
mov esi, dword [ebp - 0x5c]
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.0054c4a0
mov dword [ebp - 0x60], 1
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
test edx, edx
mov dword [ecx + 0xb4], 0x2000
jne 0x54a670
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xb4]
call fcn.005600d0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xb0], eax
cmp dword [edx + 0xb0], edi
jne 0x54a670
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x54a6d3
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
mov edx, dword [ecx + 0xb0]
je 0x54a6a6
cmp edx, edi
je 0x54a6a6
mov ecx, dword [eax + 0x240]
cmp ecx, edi
push edx
je 0x54a69e
push eax
call ecx
add esp, 8
jmp 0x54a6a6
call fcn.005d27e0
add esp, 4
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
mov dword [edx + 0xb0], edi
mov edx, dword [ebp - 0x6c]
push eax
call fcn.0055ff90
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x5c]
cmp esi, edi
je 0x54a700
cmp dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], 0x54db70
mov dword [esi + 0x14c], 0x54dbb0
je 0x54a700
mov ecx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov dword [esi + 0x54], edi
call fcn.0054c4a0
mov esi, dword [ebp - 0x5c]
call fcn.0054ace0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005d28b3
mov esp, ebp
pop ebp
ret