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

Disassembly:
sub esp, 0x54
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, ecx
mov dx, word [esi]
mov word [esp + 0x4f], dx
mov dl, byte [esi + 2]
mov byte [esp + 0x51], dl
xor edx, edx
mov ecx, 0x511
mov word [esp + 0x52], dx
mov word [esp + 0x54], dx
mov word [esp + 0x56], dx
mov edx, dword [ebp + 0xe0]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0xdc]
mov word [esp + 0x44], cx
mov ecx, dword [ebp + 0xdc]
push edi
mov dword [esp + 0x24], esi
mov byte [esp + 0x4a], 4
mov dword [esp + 0x4b], ecx
mov dword [esp + 0x4f], eax
test edx, edx
je 0x45f583
fld dword [0x574168]
push 5
push eax
push ecx
push ecx
fstp dword [esp]
lea eax, [ebp + 0xd0]
push eax
push 0x14
lea ecx, [esp + 0x60]
push ecx
push edx
call fcn.00427cf0
mov eax, dword [ebp + 0xe4]
mov edx, dword [ebp + 0xe8]
lea ecx, [eax - 2]
add eax, 2
lea ebx, [edx - 2]
add edx, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
test ecx, ecx
jge 0x45f5b7
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0xe0]
mov esi, dword [edi + 0x2c]
cmp eax, esi
jl 0x45f5cb
dec esi
mov dword [esp + 0x1c], esi
mov eax, esi
test ebx, ebx
jge 0x45f5d1
xor ebx, ebx
mov esi, dword [edi + 0x30]
cmp edx, esi
jl 0x45f5df
dec esi
mov dword [esp + 0x20], esi
mov edx, esi
cmp ebx, edx
mov dword [esp + 0x14], ebx
jg 0x45f995
jmp 0x45f5f0
cmp ecx, eax
jg 0x45f988
mov edi, ecx
imul edi, edi, 0x124
sub eax, ecx
inc eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xe0]
mov ecx, dword [eax + 0x34]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax + edi]
mov ecx, dword [edx + 0xc]
add eax, edi
test ecx, ecx
je 0x45f63f
add ecx, 0xfffffff8
jmp 0x45f641
xor ecx, ecx
mov dword [eax + 4], ecx
cmp ecx, edx
je 0x45f7a2
mov esi, ecx
test esi, esi
je 0x45f7a2
jmp 0x45f660
cmp dword [esi + 0x1444], 1
je 0x45f773
mov edx, ebp
mov eax, esi
call fcn.00457dc0
test al, al
jne 0x45f773
cmp byte [esi + 0x5815], al
je 0x45f773
cmp byte [esi + 0x5814], al
je 0x45f773
mov eax, dword [esp + 0x30]
fld dword [esi + 0xd0]
fsub dword [eax + 0xd0]
push ecx
fstp dword [esp + 0x14]
fld dword [esi + 0xd8]
fsub dword [eax + 0xd8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [esp + 0x14]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0041b8a0
mov edx, dword [esp + 0x28]
movzx eax, byte [edx + 0x57]
mov dword [esp + 0x14], eax
add esp, 4
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 1
jne 0x45f773
cmp byte [esi + 0x144c], 1
jne 0x45f750
xor ecx, ecx
cmp dword [esi + 0x5878], ecx
je 0x45f72b
cmp dword [esi + 0x68], 0xffffffff
je 0x45f72b
mov eax, 1
cmp dword [esi + 0x5880], eax
je 0x45f730
mov dword [esi + 0x587c], ecx
mov dword [esi + 0x5878], ecx
jmp 0x45f730
mov eax, 1
cmp dword [esi + 0x1270], eax
mov byte [esi + 0x144c], 0
jge 0x45f745
mov dword [esi + 0x1270], eax
lea ecx, [esi + 0x1634]
call fcn.00487030
mov edx, dword [esp + 0x24]
push ebp
mov ecx, esi
call fcn.0045b9c0
push esi
mov ecx, ebp
call fcn.00458610
mov ebx, ebp
call fcn.00458980
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + edi + 4]
mov ecx, dword [ecx + 0xc]
add eax, edi
test ecx, ecx
je 0x45f791
lea esi, [ecx - 8]
jmp 0x45f793
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45f7a2
test esi, esi
jne 0x45f660
mov edx, dword [ebp + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + edi + 0x2c]
lea ecx, [eax + edi + 0x2c]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x45f7f0
lea esi, [eax - 0x74]
jmp 0x45f7f2
xor esi, esi
mov dword [ecx + 4], esi
cmp esi, edx
je 0x45f950
test esi, esi
je 0x45f950
cmp dword [esi + 0x70], 0
je 0x45f887
cmp dword [esi + 0x6c], 0
jne 0x45f815
xor eax, eax
jmp 0x45f88d
mov eax, dword [esi + 0x68]
mov edi, dword [esi + 0x6c]
add edi, eax
cmp eax, edi
jbe 0x45f826
call fcn.0051b1ad
mov ebx, dword [esi + 0x50]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
test ebx, ebx
jne 0x45f851
call fcn.0051b1ad
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec edi
cmp edi, ecx
ja 0x45f85e
test ebx, ebx
je 0x45f857
mov ebx, dword [ebx]
jmp 0x45f859
mov eax, dword [ebx]
mov ecx, eax
jmp 0x45f83e
xor ebx, ebx
cmp edi, dword [ebx + 0x18]
jae 0x45f863
call fcn.0051b1ad
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
call fcn.00425b90
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x45f88d
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x45f91f
movzx ecx, byte [ebp + 0x12d]
mov edx, dword [esi + 0xd4]
cmp dword [edx + 0x78], ecx
je 0x45f91f
mov eax, dword [esp + 0x30]
fld dword [esi + 0x7c]
fsub dword [eax + 0xd0]
push ecx
fstp dword [esp + 0x30]
fld dword [esi + 0x84]
fsub dword [eax + 0xd8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x30]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0041b8a0
mov ecx, dword [esp + 0x28]
movzx eax, byte [ecx + 0x57]
mov dword [esp + 0x14], eax
add esp, 4
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 1
jne 0x45f91f
push esi
mov edi, ebp
call fcn.0045c320
mov ecx, esi
mov ebx, ebp
call fcn.00458700
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + edi + 0x30]
mov ecx, dword [ecx + 0x78]
lea eax, [eax + edi + 0x2c]
test ecx, ecx
je 0x45f93f
lea esi, [ecx - 0x74]
jmp 0x45f941
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45f950
test esi, esi
jne 0x45f805
mov edx, dword [ebp + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + edi + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 0x124
sub dword [esp + 0x34], 1
mov dword [esp + 0x18], edi
jne 0x45f60b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
inc ebx
cmp ebx, edx
mov dword [esp + 0x14], ebx
jle 0x45f5f0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x54
ret 8