Function at 0x516270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x5165f6
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x5165f6
push ebx
push edi
call fcn.0053c7a0
add esp, 8
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053d1a0
add esp, 0xc
push edi
call fcn.0053c840
add esp, 4
mov esi, eax
mov ebp, dword [edi + 0x118]
cmp ebp, 0x49444154
je 0x51659e
mov eax, dword [edi + 0x70]
test al, 4
je 0x5162d7
or eax, 0x2008
mov dword [edi + 0x70], eax
cmp ebp, 0x49454e44
je 0x5162a0
cmp ebp, 0x49484452
jne 0x516300
push esi
push ebx
push edi
call fcn.0053cd10
add esp, 0xc
jmp 0x5162ab
push ebp
push edi
call fcn.0051b8c0
add esp, 8
test eax, eax
je 0x516328
push eax
push esi
push ebx
push edi
call fcn.0053f9c0
add esp, 0x10
cmp ebp, 0x504c5445
jne 0x5162ab
or byte [edi + 0x70], 2
jmp 0x5162ab
cmp ebp, 0x7043414b
jle 0x51637c
cmp ebp, 0x73524741
jg 0x5163c8
cmp ebp, 0x73424953
jle 0x51643c
cmp ebp, 0x73424954
je 0x5164dc
cmp ebp, 0x7343414c
je 0x5164ec
cmp ebp, 0x73504c54
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053df40
add esp, 0xc
jmp 0x5162ab
cmp ebp, 0x67414d40
jle 0x516408
cmp ebp, 0x6943434f
jle 0x516464
cmp ebp, 0x69434350
je 0x5164fc
cmp ebp, 0x69545874
je 0x51650c
cmp ebp, 0x6f464673
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053ea40
add esp, 0xc
jmp 0x5162ab
cmp ebp, 0x74494d44
jle 0x51648c
cmp ebp, 0x74494d45
je 0x51651c
cmp ebp, 0x74524e53
je 0x51652c
cmp ebp, 0x7a545874
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053f330
add esp, 0xc
jmp 0x5162ab
cmp ebp, 0x6348524c
jg 0x5164b4
cmp ebp, 0x504c5445
je 0x51653c
cmp ebp, 0x624b4744
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053e410
add esp, 0xc
jmp 0x5162ab
cmp ebp, 0x7043414c
je 0x51654c
cmp ebp, 0x70485973
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053e960
add esp, 0xc
jmp 0x5162ab
cmp ebp, 0x67414d41
je 0x51655c
cmp ebp, 0x68495354
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053e820
add esp, 0xc
jmp 0x5162ab
cmp ebp, 0x73524742
je 0x51656c
cmp ebp, 0x74455874
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053f1a0
add esp, 0xc
jmp 0x5162ab
cmp ebp, 0x6348524d
je 0x51657c
cmp ebp, 0x65584966
jne 0x51658c
push esi
push ebx
push edi
call fcn.0053e6b0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053d2b0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053eea0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053d790
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053f730
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053f0b0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053e1b0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053ceb0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053ebc0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053d1f0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053d6a0
add esp, 0xc
jmp 0x5162ab
push esi
push ebx
push edi
call fcn.0053d470
add esp, 0xc
jmp 0x5162ab
push 0
push esi
push ebx
push edi
call fcn.0053f9c0
add esp, 0x10
jmp 0x5162ab
mov eax, dword [edi + 0x70]
test al, 1
je 0x5165fb
cmp byte [edi + 0x14b], 3
jne 0x5165b5
mov ecx, eax
and ecx, 2
je 0x516606
test al, 8
je 0x5165ca
push str.Too_many_IDATs_found
push edi
call fcn.00522fd0
add esp, 8
mov eax, dword [edi + 0x70]
or eax, 4
mov dword [edi + 0x70], eax
push 0x49444154
push edi
call fcn.0051b8c0
add esp, 8
test eax, eax
je 0x5165f0
push eax
push esi
push ebx
push edi
call fcn.0053f9c0
add esp, 0x10
xor esi, esi
mov dword [edi + 0x130], esi
pop esi
pop edi
pop ebx
pop ebp
ret
push str.Missing_IHDR_before_IDAT
push edi
call fcn.00522d40
push str.Missing_PLTE_before_IDAT
push edi
call fcn.00522d40
nop word cs:[eax + eax]
nop dword [eax + eax]