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

Disassembly:
sub esp, 0x54
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dx, word [ecx]
mov dword [esp + 0x28], ecx
mov cl, byte [ecx + 2]
mov byte [esp + 0x55], cl
xor ecx, ecx
mov eax, 0x511
xor esi, esi
mov word [esp + 0x58], cx
mov ecx, dword [edi + 0xe0]
mov word [esp + 0x48], ax
mov eax, dword [edi + 0xdc]
mov word [esp + 0x53], dx
xor edx, edx
mov byte [esp + 0x4a], 4
mov dword [esp + 0x4b], eax
mov dword [esp + 0x4f], esi
mov word [esp + 0x56], dx
mov word [esp + 0x5a], dx
cmp ecx, esi
je 0x45f0e5
fld dword [0x574168]
push 5
push esi
push eax
push ecx
fstp dword [esp]
lea eax, [edi + 0xd0]
push eax
push 0x14
lea edx, [esp + 0x60]
push edx
push ecx
call fcn.00427cf0
mov eax, dword [edi + 0xe4]
mov edx, dword [edi + 0xe8]
lea ecx, [eax - 2]
add eax, 2
lea ebx, [edx - 2]
add edx, 2
cmp ecx, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
jge 0x45f113
mov dword [esp + 0x20], esi
mov ecx, esi
mov ebp, dword [edi + 0xe0]
mov esi, dword [ebp + 0x2c]
cmp eax, esi
jl 0x45f127
dec esi
mov dword [esp + 0x24], esi
mov eax, esi
test ebx, ebx
jge 0x45f12d
xor ebx, ebx
mov esi, dword [ebp + 0x30]
cmp edx, esi
jl 0x45f13b
dec esi
mov dword [esp + 0x1c], esi
mov edx, esi
cmp ebx, edx
mov dword [esp + 0x18], ebx
jg 0x45f4d4
cmp ecx, eax
jg 0x45f4c7
mov ebp, ecx
imul ebp, ebp, 0x124
sub eax, ecx
inc eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + ebp]
mov ecx, dword [edx + 0xc]
add eax, ebp
test ecx, ecx
je 0x45f196
lea esi, [ecx - 8]
jmp 0x45f198
xor esi, esi
mov dword [eax + 4], esi
cmp esi, edx
je 0x45f2e9
test esi, esi
je 0x45f2e9
jmp 0x45f1b0
cmp dword [esi + 0x1444], 1
je 0x45f2ba
mov edx, edi
mov eax, esi
call fcn.00457dc0
test al, al
jne 0x45f2ba
cmp byte [esi + 0x5815], al
je 0x45f2ba
cmp byte [esi + 0x5814], al
je 0x45f2ba
fld dword [esi + 0xd0]
push ecx
fsub dword [edi + 0xd0]
fstp dword [esp + 0x18]
fld dword [esi + 0xd8]
fsub dword [edi + 0xd8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [esp + 0x18]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0041b8a0
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + 0x57]
mov dword [esp + 0x18], ecx
add esp, 4
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 1
jne 0x45f2ba
cmp byte [esi + 0x144c], 1
jne 0x45f29b
xor ecx, ecx
cmp dword [esi + 0x5878], ecx
je 0x45f277
cmp dword [esi + 0x68], 0xffffffff
je 0x45f277
mov eax, 1
cmp dword [esi + 0x5880], eax
je 0x45f27c
mov dword [esi + 0x587c], ecx
mov dword [esi + 0x5878], ecx
jmp 0x45f27c
mov eax, 1
cmp dword [esi + 0x1270], eax
mov byte [esi + 0x144c], cl
jge 0x45f290
mov dword [esi + 0x1270], eax
lea ecx, [esi + 0x1634]
call fcn.00487030
mov edx, dword [esp + 0x28]
push edi
mov ecx, esi
call fcn.0045b9c0
push esi
mov ecx, edi
call fcn.00458610
mov ebx, edi
call fcn.00458980
mov ebx, dword [esp + 0x18]
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + ebp + 4]
mov ecx, dword [ecx + 0xc]
add eax, ebp
test ecx, ecx
je 0x45f2d8
lea esi, [ecx - 8]
jmp 0x45f2da
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45f2e9
test esi, esi
jne 0x45f1b0
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + ebp + 0x2c]
lea ecx, [eax + ebp + 0x2c]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x45f337
lea esi, [eax - 0x74]
jmp 0x45f339
xor esi, esi
mov dword [ecx + 4], esi
cmp esi, edx
je 0x45f48f
test esi, esi
je 0x45f48f
lea esp, [esp]
cmp dword [esi + 0x70], 0
je 0x45f3d4
cmp dword [esi + 0x6c], 0
jne 0x45f360
xor eax, eax
jmp 0x45f3da
mov eax, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
add ebx, eax
cmp eax, ebx
jbe 0x45f371
call fcn.0051b1ad
mov ebp, dword [esi + 0x50]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
test ebp, ebp
jne 0x45f39d
call fcn.0051b1ad
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec ebx
cmp ebx, ecx
ja 0x45f3ab
test ebp, ebp
je 0x45f3a4
mov ebp, dword [ebp]
jmp 0x45f3a6
mov eax, dword [ebp]
mov ecx, eax
jmp 0x45f389
xor ebp, ebp
cmp ebx, dword [ebp + 0x18]
jae 0x45f3b0
call fcn.0051b1ad
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
call fcn.00425b90
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
jmp 0x45f3da
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x45f45e
movzx ecx, byte [edi + 0x12d]
mov edx, dword [esi + 0xd4]
cmp dword [edx + 0x78], ecx
je 0x45f45e
fld dword [esi + 0x7c]
push ecx
fsub dword [edi + 0xd0]
fstp dword [esp + 0x30]
fld dword [esi + 0x84]
fsub dword [edi + 0xd8]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x30]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0041b8a0
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx + 0x57]
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 1
jne 0x45f45e
push esi
call fcn.0045c320
mov ecx, esi
mov ebx, edi
call fcn.00458700
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + ebp + 0x30]
mov ecx, dword [ecx + 0x78]
lea eax, [eax + ebp + 0x2c]
test ecx, ecx
je 0x45f47e
lea esi, [ecx - 0x74]
jmp 0x45f480
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45f48f
test esi, esi
jne 0x45f350
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + ebp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ebp, 0x124
sub dword [esp + 0x34], 1
mov dword [esp + 0x30], ebp
jne 0x45f162
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc ebx
cmp ebx, edx
mov dword [esp + 0x18], ebx
jle 0x45f147
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x54
ret