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

Disassembly:
push 0xffffffffffffffff
push 0x520310
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58057c]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
xor edi, edi
xor esi, esi
mov eax, dword [esi*4 + 0x582c30]
push eax
push ebp
call fcn.0050104f
add esp, 8
cmp eax, ebp
je 0x438bfe
inc esi
cmp esi, 2
jb 0x438b65
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov ebx, fcn.004fe6e3
mov edi, fcn.004ff2b3
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], fcn.004fe606
push ebp
lea esi, [esp + 0x1c]
mov dword [esp + 0x94], 0
call fcn.00438850
xor esi, esi
add esp, 4
cmp dword [esp + 0x1c], esi
jg 0x438c1e
mov edx, dword [esp + 0x98]
mov eax, ebp
call fcn.00418b90
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x438f35
mov eax, dword [esp + 0x30]
cmp eax, esi
jmp 0x438f28
cmp dword [esi*4 + 0x582c30], edi
je 0x438b84
mov edx, dword [esp + 0x98]
mov eax, ebp
call fcn.00418b90
jmp 0x438f35
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], fcn.004fe606
mov ecx, dword [esp + 0xa0]
push ecx
lea esi, [esp + 0x70]
mov byte [esp + 0x94], 1
call fcn.00438850
xor eax, eax
mov ecx, fcn.004fe606
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 0xa0]
push ebx
sub esp, 0x1c
mov edi, esi
mov esi, esp
mov byte [esp + 0xb0], 3
mov dword [esp + 0x34], esp
call fcn.004394a0
lea ecx, [esp + 0x54]
call fcn.00438920
add esp, 0x20
push ebp
sub esp, 0x1c
lea edi, [esp + 0x38]
mov esi, esp
mov dword [esp + 0x34], esp
call fcn.004394a0
lea ecx, [esp + 0x70]
call fcn.00438920
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x70]
add edi, 0xfffffffe
add esp, 0x20
xor eax, eax
test edi, edi
jl 0x438d05
cmp dword [ecx + 4], eax
jne 0x438d07
mov eax, 1
xor edi, edi
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
jge 0x438e63
mov ebx, edi
imul ebx, ebx, 0x124
imul eax, eax, 0x124
lea ebp, [eax + ecx + 0xc]
cmp byte [ebp + 0x110], 0
mov eax, ebp
jne 0x438d35
mov eax, dword [ebp - 4]
mov ecx, 0x55acc8
add eax, 4
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x438d66
test dx, dx
je 0x438d62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x438d66
add eax, 4
add ecx, 4
test dx, dx
jne 0x438d40
xor eax, eax
jmp 0x438d6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x438e43
lea esi, [ebp - 0xc]
mov ecx, 0x55accc
mov eax, esi
call fcn.00418c70
test al, al
je 0x438e0e
dec edi
sub ebx, 0x124
test edi, edi
jge 0x438e43
lea edi, [esp + 0x50]
mov byte [esp + 0x90], 2
call fcn.00412fa0
lea edi, [esp + 0x34]
mov byte [esp + 0x90], 1
call fcn.00412fa0
mov byte [esp + 0x90], 0
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x438de1
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x438ddb
mov eax, fcn.004fe606
push ecx
call eax
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x438e07
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x438e01
mov eax, fcn.004fe606
push ecx
call eax
add esp, 4
xor al, al
jmp 0x438f37
inc edi
add ebx, 0x124
cmp edi, dword [esp + 0x38]
jl 0x438e27
push esi
lea eax, [esp + 0x38]
call fcn.00412c60
jmp 0x438e43
mov edx, dword [esp + 0x34]
add edx, ebx
cmp byte [ebp + 0x110], 0
mov eax, ebp
jne 0x438e3b
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00418b90
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x124
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
jl 0x438d27
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x98]
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.00438ac0
add esp, 8
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [esi*4 + 0x582c30]
push ecx
push ebx
call fcn.0050104f
add esp, 8
cmp eax, ebx
je 0x438e9d
inc esi
cmp esi, 2
jb 0x438e80
jmp 0x438ec7
mov esi, dword [esi*4 + 0x582c30]
test esi, esi
je 0x438ec7
mov ecx, esi
lea eax, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x438eb0
sub ecx, eax
sar ecx, 1
push ebp
mov eax, esi
call fcn.00418f30
lea edi, [esp + 0x50]
mov byte [esp + 0x90], 2
call fcn.00412fa0
lea edi, [esp + 0x34]
mov byte [esp + 0x90], 1
call fcn.00412fa0
mov byte [esp + 0x90], 0
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x438f0f
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x438f09
mov eax, fcn.004fe606
push ecx
call eax
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x438f35
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x438f2f
mov eax, fcn.004fe606
push ecx
call eax
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret