Function at 0x5218c0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5f458c
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xb8]
mov esi, dword [esp + 0xc4]
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call fcn.0052d4b0
mov eax, ebp
lea edi, [esp + 0x70]
mov dword [esp + 0xb0], 0
call fcn.0052d5b0
test al, al
je 0x521b13
mov eax, dword [esp + 0x78]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x52195d
lea ecx, [esp + 0x70]
push ecx
jmp 0x521b18
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x521b13
mov edx, dword [eax + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x521b13
mov edi, dword [eax + 0x80]
test edi, edi
je 0x521953
mov ecx, ebp
call fcn.004d7da0
mov ebx, eax
mov ebp, edx
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call fcn.0053e090
mov ecx, eax
test ecx, ecx
jl 0x521b13
cdq
cmp edx, ebp
ja 0x521b13
jb 0x5219c1
cmp eax, ebx
ja 0x521b13
mov edx, dword [esp + 0x18]
lea ebx, [ecx + edx + 8]
lea esp, [esp]
cmp dword [ebx - 8], 0
jne 0x5219f1
cmp dword [ebx + 8], 0
jne 0x5219f1
cmp dword [ebx], 0
jne 0x5219f1
cmp dword [ebx + 4], 0
jne 0x5219f1
cmp dword [ebx - 4], 0
je 0x521b13
mov eax, dword [ebx + 4]
push eax
lea eax, [esp + 0x18]
call fcn.0053e090
mov ecx, eax
test ecx, ecx
jl 0x521b0c
cdq
cmp edx, ebp
ja 0x521b0c
jb 0x521a1d
cmp eax, dword [esp + 0x1c]
ja 0x521b0c
mov edx, dword [esp + 0x18]
lea edi, [ecx + edx]
push 0x104
push edi
call dword [0x6102c4]
test eax, eax
jne 0x521953
lea eax, [esp + 0x54]
call fcn.004e29c0
lea edi, [esp + 0x54]
mov byte [esp + 0xb0], 1
call fcn.004ce5c0
mov eax, edi
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004f6050
mov ecx, dword [eax]
test ecx, ecx
mov edi, dword [eax + 4]
mov ebp, dword [esi + 4]
je 0x521a6f
cmp ecx, esi
je 0x521a75
call dword [0x6105e8]
cmp edi, ebp
jne 0x521aee
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x38]
push ebp
push edx
mov edx, edi
lea ecx, [esp + 0x5c]
call fcn.00521b50
add esp, 8
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, esi
mov byte [esp + 0xb8], 2
call fcn.00452080
mov ecx, eax
call dword [0x61059c]
lea ecx, [esp + 0x38]
mov byte [esp + 0xb0], 1
call dword [0x6105a0]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.00452080
cmp dword [eax + 0x14], 0
je 0x521aee
push esi
push ebp
push edi
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00452080
push eax
call fcn.005218c0
add esp, 0x10
lea ecx, [esp + 0x54]
add ebx, 0x14
mov byte [esp + 0xb0], 0
call dword [0x6105a0]
mov ebp, dword [esp + 0x20]
jmp 0x5219d0
lea edx, [esp + 0x70]
push edx
jmp 0x521b18
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0xb4], 0xffffffff
call fcn.0052d520
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005e693f
add esp, 0xa0
ret