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

Disassembly:
sub esp, 0x50
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x4c], eax
mov dx, word [ecx]
push ebx
mov dword [esp + 0x28], ecx
mov cl, byte [ecx + 2]
push ebp
mov ebp, dword [esp + 0x5c]
mov byte [esp + 0x4d], cl
xor ecx, ecx
push esi
mov eax, 0x517
push edi
xor edi, edi
mov word [esp + 0x58], cx
mov ecx, dword [ebp + 0xe0]
mov word [esp + 0x48], ax
mov eax, dword [ebp + 0xdc]
mov word [esp + 0x53], dx
xor edx, edx
mov byte [esp + 0x4a], 4
mov dword [esp + 0x4b], eax
mov dword [esp + 0x4f], edi
mov word [esp + 0x56], dx
mov word [esp + 0x5a], dx
cmp ecx, edi
je 0x45dbe7
fld dword [0x574168]
push 5
push edi
push eax
push ecx
fstp dword [esp]
lea eax, [ebp + 0xd0]
push eax
push 0x14
lea edx, [esp + 0x60]
push edx
push ecx
call fcn.00427cf0
mov eax, dword [ebp + 0xe4]
lea edx, [eax - 2]
lea esi, [eax + 2]
mov eax, dword [ebp + 0xe8]
lea ecx, [eax - 2]
add eax, 2
cmp edx, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
jge 0x45dc15
mov dword [esp + 0x24], edi
mov edx, edi
mov ebx, dword [ebp + 0xe0]
mov edi, dword [ebx + 0x2c]
cmp esi, edi
jl 0x45dc29
dec edi
mov dword [esp + 0x1c], edi
mov esi, edi
test ecx, ecx
jge 0x45dc2f
xor ecx, ecx
mov edi, dword [ebx + 0x30]
cmp eax, edi
jl 0x45dc3d
dec edi
mov dword [esp + 0x18], edi
mov eax, edi
cmp ecx, eax
mov ebx, ecx
mov dword [esp + 0x20], ecx
jg 0x45de4c
jmp 0x45dc50
cmp edx, esi
jg 0x45de3f
mov edi, edx
imul edi, edi, 0x124
mov eax, esi
sub eax, edx
inc eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
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 0x45dca4
lea esi, [eax - 0x74]
jmp 0x45dca6
xor esi, esi
mov dword [ecx + 4], esi
cmp esi, edx
je 0x45de07
test esi, esi
je 0x45de07
lea esp, [esp]
cmp dword [esi + 0x70], 0
je 0x45dd42
cmp dword [esi + 0x6c], 0
jne 0x45dcd0
xor eax, eax
jmp 0x45dd48
mov eax, dword [esi + 0x68]
mov edi, dword [esi + 0x6c]
add edi, eax
cmp eax, edi
jbe 0x45dce1
call fcn.0051b1ad
mov ebx, dword [esi + 0x50]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
test ebx, ebx
jne 0x45dd0c
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 0x45dd19
test ebx, ebx
je 0x45dd12
mov ebx, dword [ebx]
jmp 0x45dd14
mov eax, dword [ebx]
mov ecx, eax
jmp 0x45dcf9
xor ebx, ebx
cmp edi, dword [ebx + 0x18]
jae 0x45dd1e
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 ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
jmp 0x45dd48
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x45ddd6
movzx ecx, byte [ebp + 0x12d]
mov edx, dword [esi + 0xd4]
cmp dword [edx + 0x78], ecx
je 0x45ddd6
fld dword [esi + 0x7c]
push ecx
fsub dword [ebp + 0xd0]
fstp dword [esp + 0x18]
fld dword [esi + 0x84]
fsub dword [ebp + 0xd8]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
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 ecx, dword [esp + 0x38]
movzx eax, byte [ecx + 0x57]
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 1
jne 0x45ddd6
push esi
mov edi, ebp
call fcn.0045c320
mov ecx, esi
mov ebx, ebp
call fcn.00458700
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
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 0x45ddf6
lea esi, [ecx - 0x74]
jmp 0x45ddf8
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45de07
test esi, esi
jne 0x45dcc0
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 + 0x2c], 1
mov dword [esp + 0x28], edi
jne 0x45dc6d
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x20], ebx
jle 0x45dc50
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x50
ret 4