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

Disassembly:
push 0xffffffffffffffff
push 0x475078
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a2c4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
cmp ebp, eax
je 0x43aaec
lea ebx, [ebp + 0x50]
mov dword [esp + 0x18], ebx
cmp ebx, eax
je 0x43aaec
lea esp, [esp]
push ebx
lea ecx, [esp + 0x2c]
mov esi, ebx
call fcn.00438290
sub esp, 0x50
mov ecx, esp
mov dword [esp + 0x74], esp
push ebp
mov dword [esp + 0xd4], 0
call fcn.00438290
sub esp, 0x50
lea eax, [esp + 0xc8]
mov ecx, esp
mov dword [esp + 0xb4], esp
push eax
mov byte [esp + 0x124], 1
call fcn.00438290
mov byte [esp + 0x120], 0
call dword [esp + 0x130]
add esp, 0xa0
test eax, eax
je 0x43a814
mov eax, dword [esp + 0x88]
mov byte [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x24], 0
mov edx, dword [esp + 0x24]
push edx
push eax
lea ecx, [ebx + 0x50]
push ecx
push ebx
push ebp
call fcn.00438580
mov eax, dword [ebp]
mov ecx, dword [esp + 0x40]
add esp, 0x18
cmp eax, ecx
je 0x43a7c4
cmp dword [eax - 0xc], 0
mov esi, dword [0x488010]
lea edx, [eax - 0xc]
jge 0x43a743
lea edi, [eax - 0xc]
cmp edi, esi
jne 0x43a749
cmp dword [ecx - 0xc], 0
jge 0x43a789
mov edi, dword [ecx - 8]
mov dword [esp + 0x18], ecx
push edi
mov ecx, ebp
call fcn.00413030
test eax, eax
je 0x43a7c4
mov eax, dword [ebp]
lea esi, [edi + edi]
lea edx, [esi + 2]
cmp edx, esi
jb 0x43a778
mov ecx, dword [esp + 0x18]
push esi
push ecx
push eax
call fcn.004482d0
add esp, 0xc
mov edx, dword [ebp]
mov dword [edx - 8], edi
mov eax, dword [ebp]
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x43a7c4
add eax, 0xfffffff4
cmp eax, esi
je 0x43a7b7
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43a7aa
mov eax, dword [ebp]
sub eax, 0xc
push eax
call fcn.00448106
add esp, 4
mov edx, dword [0x488014]
mov ecx, dword [esp + 0x28]
mov dword [ebp], edx
mov dword [ebp], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [ebp + 8], ecx
lea ecx, [esp + 0x3c]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x38]
push ecx
lea ecx, [ebp + 0x14]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
call fcn.00437540
lea edx, [esp + 0x54]
push edx
lea ecx, [ebp + 0x2c]
call fcn.00437540
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], edx
jmp 0x43aac4
lea edi, [ebx + 8]
sub esp, 0x50
sub edi, 0x50
lea ebx, [edi - 8]
mov ecx, esp
mov dword [esp + 0x74], esp
push ebx
call fcn.00438290
sub esp, 0x50
lea eax, [esp + 0xc8]
mov ecx, esp
mov dword [esp + 0xb4], esp
push eax
mov byte [esp + 0x124], 2
call fcn.00438290
mov byte [esp + 0x120], 0
call dword [esp + 0x130]
add esp, 0xa0
test eax, eax
je 0x43a996
mov edx, dword [ebx]
mov eax, dword [esi]
mov dword [esp + 0x24], edx
cmp eax, edx
je 0x43a94d
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
mov dword [esp + 0x14], ebp
test ecx, ecx
jge 0x43a897
lea ebp, [eax - 0xc]
cmp ebp, dword [0x488010]
mov ebp, dword [esp + 0x14]
jne 0x43a89d
cmp dword [edx - 0xc], 0
jge 0x43a90c
cmp ecx, 1
mov ebx, dword [edx - 8]
jg 0x43a8aa
cmp ebx, dword [eax - 4]
jle 0x43a8e2
add eax, 0xfffffff4
cmp eax, dword [0x488010]
je 0x43a8d6
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43a8ce
mov ecx, dword [esi]
sub ecx, 0xc
push ecx
call fcn.00448106
add esp, 4
mov edx, dword [0x488014]
mov dword [esi], edx
push ebx
mov ecx, esi
call fcn.00412460
test eax, eax
je 0x43a946
lea ebp, [ebx + ebx]
lea eax, [ebp + 2]
cmp eax, ebp
jb 0x43a8fd
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push ebp
push ecx
push edx
call fcn.004482d0
add esp, 0xc
mov eax, dword [esi]
mov dword [eax - 8], ebx
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + ebp], dx
jmp 0x43a946
add eax, 0xfffffff4
cmp eax, dword [0x488010]
je 0x43a938
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43a930
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 [ebx]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebp, dword [esp + 0x88]
mov edx, dword [edi - 4]
mov dword [esi + 4], edx
mov eax, dword [edi]
mov dword [esi + 8], eax
mov ecx, dword [edi + 4]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 8]
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], edx
call fcn.00437540
lea ecx, [edi + 0x24]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00437540
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x4c], ecx
lea esi, [edi - 8]
jmp 0x43a817
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x43aa75
mov edx, dword [ecx - 0xc]
lea edi, [ecx - 0xc]
mov dword [esp + 0x14], edi
test edx, edx
jge 0x43a9c1
lea edi, [ecx - 0xc]
cmp edi, dword [0x488010]
mov edi, dword [esp + 0x14]
jne 0x43a9c7
cmp dword [eax - 0xc], 0
jge 0x43aa3a
cmp edx, 1
mov ebx, dword [eax - 8]
mov dword [esp + 0x24], eax
jg 0x43a9d8
cmp ebx, dword [ecx - 4]
jle 0x43aa10
add ecx, 0xfffffff4
cmp ecx, dword [0x488010]
je 0x43aa04
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43a9fc
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00448106
add esp, 4
mov edx, dword [0x488014]
mov dword [esi], edx
push ebx
mov ecx, esi
call fcn.00412460
test eax, eax
je 0x43aa75
mov eax, dword [esi]
lea edi, [ebx + ebx]
lea ecx, [edi + 2]
cmp ecx, edi
jb 0x43aa2b
mov edx, dword [esp + 0x24]
push edi
push edx
push eax
call fcn.004482d0
add esp, 0xc
mov eax, dword [esi]
mov dword [eax - 8], ebx
mov ecx, dword [esi]
xor edx, edx
mov word [edi + ecx], dx
jmp 0x43aa75
add ecx, 0xfffffff4
cmp ecx, dword [0x488010]
je 0x43aa69
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43aa5e
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00448106
add esp, 4
mov eax, dword [0x488014]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 8], edx
lea edx, [esp + 0x3c]
mov dword [esi + 0x10], ecx
push edx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], eax
call fcn.00437540
lea eax, [esp + 0x54]
push eax
lea ecx, [esi + 0x2c]
call fcn.00437540
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x80], 0xffffffff
call fcn.004350e0
add ebx, 0x50
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x8c]
jne 0x43a690
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret