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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x4b4810]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00445250
mov ecx, eax
call fcn.004451d0
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 0x1a0]
cmp esi, dword [eax + 0x1a4]
je 0x43f5ad
push 1
push 0x413d68
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
call fcn.0041a670
lea eax, [esp + 0x38]
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.004424d0
cmp dword [esp + 0x4c], 0x10
jb 0x43f1cc
push dword [esp + 0x38]
call fcn.0048f211
add esp, 4
cmp dword [esp + 0x88], 0
jne 0x43f1eb
cmp dword [esp + 0x90], 0
jne 0x43f1eb
lea ecx, [esp + 0x50]
call fcn.00442c10
jmp 0x43f1f4
lea ecx, [esp + 0x50]
call fcn.00442ca0
test al, al
je 0x43f556
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
cmp ecx, eax
je 0x43f235
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.0041a670
cmp dword [esp + 0x4c], 0x10
mov edi, dword [esp + 0x38]
jae 0x43f239
lea edi, [esp + 0x38]
call fcn.00445250
push edi
mov ecx, eax
call fcn.00444ff0
cmp dword [esp + 0x4c], 0x10
mov ebx, eax
mov dword [esp + 0xc], ebx
jb 0x43f25f
push dword [esp + 0x38]
call fcn.0048f211
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
cmp dword [esp + 0x88], 0
jne 0x43f293
cmp dword [esp + 0x90], 0
jne 0x43f293
lea ecx, [esp + 0x50]
call fcn.00442c10
jmp 0x43f29c
lea ecx, [esp + 0x50]
call fcn.00442ca0
test al, al
je 0x43f556
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
cmp ecx, eax
je 0x43f2dd
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0041a670
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x43f2e1
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0049649e
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov edi, dword [esp + 0x28]
add esp, 8
cmp ecx, 0x10
fstp qword [esp + 0x18]
cmovae eax, edi
cmp dword [esp + 0x14], eax
je 0x43f35a
movsd xmm0, qword [esp + 0x18]
mulsd xmm0, qword [0x414150]
call fcn.00492b0f
mov ebx, eax
mov edi, edx
cmp ebx, 0xffffffff
jne 0x43f331
cmp edi, 0x7fffffff
jne 0x43f331
or ebx, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x48], ebx
mov ebx, eax
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
jmp 0x43f533
cmp ecx, 0x10
lea edx, [esp + 0x20]
mov ecx, 6
cmovae edx, edi
mov edi, dword [esp + 0x30]
cmp edi, ecx
cmovb ecx, edi
test ecx, ecx
je 0x43f3d4
mov edi, 0x413d60
sub ecx, 4
jb 0x43f391
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x43f396
add edx, 4
add edi, 4
sub ecx, 4
jae 0x43f380
cmp ecx, 0xfffffffc
je 0x43f3ca
mov al, byte [edx]
cmp al, byte [edi]
jne 0x43f3c3
cmp ecx, 0xfffffffd
je 0x43f3ca
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x43f3c3
cmp ecx, 0xfffffffe
je 0x43f3ca
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x43f3c3
cmp ecx, 0xffffffff
je 0x43f3ca
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x43f3ca
sbb eax, eax
or eax, 1
jmp 0x43f3cc
xor eax, eax
mov edi, dword [esp + 0x30]
test eax, eax
jne 0x43f3f8
cmp edi, 6
jb 0x43f3f8
xor eax, eax
cmp edi, 6
setne al
test eax, eax
jne 0x43f3f8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x18], 0
jmp 0x43f533
cmp dword [esp + 0x34], 0x10
lea edx, [esp + 0x20]
mov ecx, 7
cmovae edx, dword [esp + 0x20]
cmp edi, ecx
cmovb ecx, edi
test ecx, ecx
je 0x43f474
mov edi, 0x413d78
sub ecx, 4
jb 0x43f431
mov edi, edi
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x43f436
add edx, 4
add edi, 4
sub ecx, 4
jae 0x43f420
cmp ecx, 0xfffffffc
je 0x43f46a
mov al, byte [edx]
cmp al, byte [edi]
jne 0x43f463
cmp ecx, 0xfffffffd
je 0x43f46a
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x43f463
cmp ecx, 0xfffffffe
je 0x43f46a
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x43f463
cmp ecx, 0xffffffff
je 0x43f46a
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x43f46a
sbb eax, eax
or eax, 1
jmp 0x43f46c
xor eax, eax
mov edi, dword [esp + 0x30]
test eax, eax
jne 0x43f498
cmp edi, 7
jb 0x43f498
xor eax, eax
cmp edi, 7
setne al
test eax, eax
jne 0x43f498
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x18], 1
jmp 0x43f533
cmp dword [esp + 0x34], 0x10
lea edx, [esp + 0x20]
mov ecx, 0xb
cmovae edx, dword [esp + 0x20]
cmp edi, ecx
cmovb ecx, edi
test ecx, ecx
je 0x43f514
mov edi, 0x413d6c
sub ecx, 4
jb 0x43f4d1
mov edi, edi
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x43f4d6
add edx, 4
add edi, 4
sub ecx, 4
jae 0x43f4c0
cmp ecx, 0xfffffffc
je 0x43f50a
mov al, byte [edx]
cmp al, byte [edi]
jne 0x43f503
cmp ecx, 0xfffffffd
je 0x43f50a
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x43f503
cmp ecx, 0xfffffffe
je 0x43f50a
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x43f503
cmp ecx, 0xffffffff
je 0x43f50a
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x43f50a
sbb eax, eax
or eax, 1
jmp 0x43f50c
xor eax, eax
test eax, eax
jne 0x43f53a
mov edi, dword [esp + 0x30]
cmp edi, 0xb
jb 0x43f53a
xor eax, eax
cmp edi, 0xb
setne al
test eax, eax
jne 0x43f53a
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x18], 2
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x34], 0x10
jb 0x43f274
push dword [esp + 0x20]
call fcn.0048f211
add esp, 4
jmp 0x43f274
cmp dword [esp + 0x8c], 0x10
jb 0x43f56c
push dword [esp + 0x78]
call fcn.0048f211
add esp, 4
cmp dword [esp + 0x74], 0x10
mov byte [esp + 0x78], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0xf
jb 0x43f59a
push dword [esp + 0x60]
call fcn.0048f211
add esp, 4
mov eax, dword [esp + 0x10]
add esi, 0x18
cmp esi, dword [eax + 0x1a4]
jne 0x43f185
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00492f61
mov esp, ebp
pop ebp
ret