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

Disassembly:
sub esp, 0x50
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], edx
mov edx, dword [edx + 0x88]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3f], edx
mov dx, word [ecx]
mov cl, byte [ecx + 2]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov byte [esp + 0x4d], cl
xor ecx, ecx
mov eax, 0x517
mov word [esp + 0x50], cx
mov ecx, dword [ebp + 0xe0]
mov word [esp + 0x40], ax
mov eax, dword [ebp + 0xdc]
mov word [esp + 0x4b], dx
xor edx, edx
push esi
push edi
mov byte [esp + 0x4a], 4
mov dword [esp + 0x4b], eax
mov word [esp + 0x56], dx
mov word [esp + 0x5a], dx
test ecx, ecx
je 0x45d73f
fld dword [0x574168]
push 5
push edx
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]
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 0x45d773
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0xe0]
mov esi, dword [edi + 0x2c]
cmp eax, esi
jl 0x45d787
dec esi
mov dword [esp + 0x1c], esi
mov eax, esi
test ebx, ebx
jge 0x45d78d
xor ebx, ebx
mov esi, dword [edi + 0x30]
cmp edx, esi
jl 0x45d79b
dec esi
mov dword [esp + 0x20], esi
mov edx, esi
cmp ebx, edx
mov dword [esp + 0x14], ebx
jg 0x45db40
cmp ecx, eax
jg 0x45db33
mov edi, ecx
imul edi, edi, 0x124
sub eax, ecx
inc eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + edi + 8]
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]
mov ecx, dword [edx + 0xc]
add eax, edi
test ecx, ecx
je 0x45d7f6
lea esi, [ecx - 8]
jmp 0x45d7f8
xor esi, esi
mov dword [eax + 4], esi
cmp esi, edx
je 0x45d94e
test esi, esi
je 0x45d94e
jmp 0x45d810
cmp dword [esi + 0x1444], 1
je 0x45d91f
mov edx, ebp
mov eax, esi
call fcn.00457dc0
test al, al
jne 0x45d91f
cmp byte [esi + 0x5815], al
je 0x45d91f
cmp byte [esi + 0x5814], al
je 0x45d91f
mov eax, dword [esp + 0x30]
fld dword [esi + 0xd0]
fsub dword [eax + 0x7c]
push ecx
fstp dword [esp + 0x14]
fld dword [esi + 0xd8]
fsub dword [eax + 0x84]
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 eax, dword [esp + 0x28]
movzx ecx, byte [eax + 0x57]
mov dword [esp + 0x14], ecx
add esp, 4
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 1
jne 0x45d91f
cmp byte [esi + 0x144c], 1
jne 0x45d8fc
xor ecx, ecx
cmp dword [esi + 0x5878], ecx
je 0x45d8d8
cmp dword [esi + 0x68], 0xffffffff
je 0x45d8d8
mov eax, 1
cmp dword [esi + 0x5880], eax
je 0x45d8dd
mov dword [esi + 0x587c], ecx
mov dword [esi + 0x5878], ecx
jmp 0x45d8dd
mov eax, 1
cmp dword [esi + 0x1270], eax
mov byte [esi + 0x144c], cl
jge 0x45d8f1
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 edx, dword [ebp + 0xe0]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + edi + 4]
mov ecx, dword [ecx + 0xc]
add eax, edi
test ecx, ecx
je 0x45d93d
lea esi, [ecx - 8]
jmp 0x45d93f
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45d94e
test esi, esi
jne 0x45d810
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 0x45d99c
add eax, 0xffffff8c
jmp 0x45d99e
xor eax, eax
mov dword [ecx + 4], eax
cmp eax, edx
je 0x45dafb
mov esi, eax
test esi, esi
je 0x45dafb
cmp dword [esi + 0x70], 0
je 0x45da35
cmp dword [esi + 0x6c], 0
jne 0x45d9c3
xor eax, eax
jmp 0x45da3b
mov eax, dword [esi + 0x68]
mov edi, dword [esi + 0x6c]
add edi, eax
cmp eax, edi
jbe 0x45d9d4
call fcn.0051b1ad
mov ebx, dword [esi + 0x50]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
test ebx, ebx
jne 0x45d9ff
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 0x45da0c
test ebx, ebx
je 0x45da05
mov ebx, dword [ebx]
jmp 0x45da07
mov eax, dword [ebx]
mov ecx, eax
jmp 0x45d9ec
xor ebx, ebx
cmp edi, dword [ebx + 0x18]
jae 0x45da11
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 0x45da3b
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x45daca
movzx ecx, byte [ebp + 0x12d]
mov edx, dword [esi + 0xd4]
cmp dword [edx + 0x78], ecx
je 0x45daca
mov eax, dword [esp + 0x30]
fld dword [esi + 0x7c]
fsub dword [eax + 0x7c]
push ecx
fstp dword [esp + 0x30]
fld dword [esi + 0x84]
fsub dword [eax + 0x84]
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 0x45daca
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 0x45daea
lea esi, [ecx - 0x74]
jmp 0x45daec
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45dafb
test esi, esi
jne 0x45d9b3
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 0x45d7c2
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 0x45d7a7
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x50
ret 4