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

Disassembly:
push 0xffffffffffffffff
push 0x474d80
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
lea eax, [esi - 1]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
cmp dword [esp + 0x30], esi
mov dword [esp + 0x20], 0
jge 0x4388ff
sub esp, 0x50
lea eax, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
call fcn.00438290
mov ebx, dword [esp + 0x78]
lea ecx, [ebp + ebp*4]
shl ecx, 4
sub esp, 0x50
lea edi, [ecx + ebx]
mov ecx, esp
mov dword [esp + 0xb4], esp
push edi
mov byte [esp + 0xc4], 1
call fcn.00438290
mov byte [esp + 0xc0], 0
call dword [esp + 0x124]
add esp, 0xa0
test eax, eax
je 0x438903
lea esi, [esi + esi*4]
shl esi, 4
mov eax, dword [esi + ebx]
add esi, ebx
mov ebx, dword [edi]
cmp eax, ebx
je 0x4388a7
cmp dword [eax - 0xc], 0
mov edx, dword [0x488010]
lea ecx, [eax - 0xc]
mov dword [esp + 0x2c], ecx
jge 0x438823
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x438829
mov ecx, dword [esp + 0x2c]
cmp dword [ebx - 0xc], 0
jge 0x438871
mov eax, dword [ebx - 8]
push eax
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.00413030
test eax, eax
je 0x4388a7
mov eax, dword [esp + 0x2c]
add eax, eax
lea edx, [eax + 2]
mov dword [esp + 0x14], eax
cmp edx, eax
jb 0x43885e
push eax
mov eax, dword [esi]
push ebx
push eax
call fcn.004482d0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esi]
mov edx, dword [esp + 0x2c]
mov dword [ecx - 8], edx
mov ecx, dword [esi]
xor edx, edx
mov word [eax + ecx], dx
jmp 0x4388a7
add eax, 0xfffffff4
cmp eax, edx
je 0x438899
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x438891
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00448106
add esp, 4
mov ecx, dword [0x488014]
mov dword [esi], ecx
mov eax, dword [edi]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
lea eax, [edi + 0x14]
push eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], edx
call fcn.00437540
lea ecx, [edi + 0x2c]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00437540
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
lea eax, [ebp - 1]
cdq
sub eax, edx
mov dword [esi + 0x4c], ecx
mov esi, ebp
sar eax, 1
cmp dword [esp + 0x30], esi
mov ebp, eax
jl 0x438795
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
lea esi, [esi + esi*4]
shl esi, 4
mov eax, dword [esi + ebx]
add esi, ebx
cmp eax, ecx
je 0x4389dd
mov edx, dword [eax - 0xc]
mov ebp, dword [0x488010]
lea edi, [eax - 0xc]
test edx, edx
jge 0x438931
lea ebx, [eax - 0xc]
cmp ebx, ebp
jne 0x438937
cmp dword [ecx - 0xc], 0
jge 0x4389a5
cmp edx, 1
mov ebx, dword [ecx - 8]
mov dword [esp + 0x28], ecx
jg 0x438948
cmp ebx, dword [eax - 4]
jle 0x43897b
add eax, 0xfffffff4
cmp eax, ebp
je 0x43896f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x438968
mov edx, dword [esi]
sub edx, 0xc
push edx
call fcn.00448106
add esp, 4
mov eax, dword [0x488014]
mov dword [esi], eax
push ebx
mov ecx, esi
call fcn.00412460
test eax, eax
je 0x4389dd
lea edi, [ebx + ebx]
lea ecx, [edi + 2]
cmp ecx, edi
jb 0x438996
mov edx, dword [esp + 0x28]
mov eax, dword [esi]
push edi
push edx
push eax
call fcn.004482d0
add esp, 0xc
mov ecx, dword [esi]
mov dword [ecx - 8], ebx
mov edx, dword [esi]
xor eax, eax
mov word [edi + edx], ax
jmp 0x4389dd
add eax, 0xfffffff4
cmp eax, ebp
je 0x4389d1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4389c5
mov ecx, dword [esi]
sub ecx, 0xc
push ecx
call fcn.00448106
add esp, 4
mov edx, dword [0x488014]
mov ecx, dword [esp + 0x34]
mov dword [esi], edx
mov dword [esi], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov dword [esi + 8], ecx
lea ecx, [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
call fcn.00437540
lea edx, [esp + 0x60]
push edx
lea ecx, [esi + 0x2c]
call fcn.00437540
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov dword [esi + 0x48], ecx
lea ecx, [esp + 0x34]
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], edx
call fcn.004350e0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret