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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
cmp dword [eax + 0x78], 0
jne 0x513bf1
mov dword [esp + 4], ecx
jmp 0x52137c
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x513bfe
mov dword [esp + 4], ecx
jmp eax
mov eax, 1
ret
mov eax, 0x28
call fcn.0059fc4c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
push 0x100105e0
push 0x10010580
xor esi, esi
lea eax, [edi + 0x44]
push 0x10010560
xor ebx, ebx
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
call fcn.0051317c
add esp, 0x10
call fcn.0052061c
mov ebp, eax
cmp ebp, esi
jne 0x5213da
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
push edi
call fcn.00512dcc
add esp, 4
cmp eax, esi
mov dword [esp + 0x20], eax
jne 0x5213fc
push 0x311
push 0x100f495c
push 0x71
jmp 0x52171f
cmp dword [esp + 0x40], esi
jne 0x521417
call fcn.00511f7c
cmp eax, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
je 0x521756
mov ebx, dword [esp + 0x40]
push ebx
call fcn.0051200c
push ebx
call fcn.0051209c
mov esi, eax
add esp, 8
test esi, esi
je 0x52172e
push ebx
push esi
push edi
call fcn.00512ddc
add esp, 0xc
test eax, eax
je 0x52172e
cmp dword [esi + 4], 0
jne 0x52145e
push 0x323
push 0x100f495c
push 0x72
jmp 0x52171f
push esi
call fcn.0051126c
add esp, 4
cmp eax, 0x7d0
mov edx, 4
mov dword [esp + 0x3c], edx
jae 0x5214a7
cmp eax, 0x320
jae 0x52149d
cmp eax, 0x12c
jae 0x5214d9
cmp eax, 0x46
jae 0x5214d9
cmp eax, 0x14
sbb ecx, ecx
add ecx, 2
cmp ecx, edx
jbe 0x5214d9
cmp eax, 0x320
jb 0x5214b1
mov dword [esp + 0x3c], 5
jmp 0x5214d9
mov dword [esp + 0x3c], 6
jmp 0x5214d9
cmp eax, 0x12c
jb 0x5214be
mov dword [esp + 0x3c], edx
jmp 0x5214d9
cmp eax, 0x46
jb 0x5214cd
mov dword [esp + 0x3c], 3
jmp 0x5214d9
cmp eax, 0x14
sbb ecx, ecx
add ecx, 2
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x3c]
add ecx, 0xffffffff
mov esi, 1
shl esi, cl
add eax, 7
shr eax, 3
push 0x33c
mov dword [esp + 0x2c], esi
imul esi, eax
mov dword [esp + 0x20], eax
lea eax, [esi*4 + 4]
push 0x100f495c
push eax
mov dword [esp + 0x30], esi
call fcn.0051b55c
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x521528
push 0x33f
jmp 0x521718
mov dword [eax + esi*4], 0
xor esi, esi
cmp dword [esp + 0x24], esi
mov ebx, eax
jbe 0x52155d
lea ecx, [ecx]
push edi
call fcn.005132bc
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov dword [ecx + esi*4], eax
je 0x52170c
add esi, 1
cmp esi, dword [esp + 0x24]
jb 0x52153c
push edi
call fcn.005132bc
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x521713
push edi
call fcn.005132bc
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x521713
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.005133dc
add esp, 8
test eax, eax
je 0x52172e
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jbe 0x521695
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push edi
call fcn.0051383c
add esp, 0x10
test eax, eax
je 0x52172e
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
push ecx
push eax
call fcn.005133dc
add esp, 8
add ebx, 4
test eax, eax
je 0x52172e
mov esi, 1
cmp dword [esp + 0x28], esi
jbe 0x52162a
lea ebx, [ebx]
mov edx, dword [esp + 0x40]
mov eax, dword [ebx - 4]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
push edi
call fcn.005137bc
add esp, 0x14
test eax, eax
je 0x52172e
add esi, 1
add ebx, 4
cmp esi, dword [esp + 0x28]
jb 0x5215fc
mov eax, dword [esp + 0x1c]
add eax, 0xffffffff
cmp dword [esp + 0x20], eax
jae 0x521680
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
call fcn.0051383c
add esp, 0x10
test eax, eax
je 0x52172e
mov esi, 2
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
push ecx
push eax
push eax
push edi
call fcn.0051383c
add esp, 0x10
test eax, eax
je 0x52172e
add esi, 1
cmp esi, 8
jb 0x52165c
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jb 0x5215b0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push edx
push eax
push esi
push edi
call fcn.00513aac
add esp, 0x10
test eax, eax
je 0x52172e
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push 0x100105e0
push 0x10010580
push 0x10010560
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x40]
push ebp
push ecx
mov dword [ebp], edi
mov dword [ebp + 4], 8
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov dword [esp + 0x24], 0
mov dword [ebp + 0x14], esi
call fcn.0051309c
add esp, 0x14
test eax, eax
je 0x52172e
xor ebp, ebp
mov dword [esp + 0x30], 1
jmp 0x52172e
push 0x349
jmp 0x521718
push 0x350
push 0x100f495c
push 0x41
push 0xbc
push 0x10
call fcn.0051a7cc
add esp, 0x14
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
je 0x521741
push eax
call fcn.0051205c
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x521752
push eax
call fcn.00511fdc
add esp, 4
mov ebx, dword [esp + 0x10]
cmp ebp, esi
je 0x521763
push ebp
call fcn.005206ac
add esp, 4
cmp ebx, esi
je 0x52178b
mov eax, dword [ebx]
test eax, eax
mov esi, ebx
je 0x521782
push eax
call fcn.0051336c
mov eax, dword [esi + 4]
add esi, 4
add esp, 4
test eax, eax
jne 0x52176f
push ebx
call fcn.0051b74c
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x52179c
push eax
call fcn.0051336c
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5217ad
push eax
call fcn.0051336c
add esp, 4
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret