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

Disassembly:
sub esp, 0x50
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, edx
mov edx, dword [esi + 0x88]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x4f], edx
mov dx, word [ecx]
mov cl, byte [ecx + 2]
mov byte [esp + 0x55], cl
xor ecx, ecx
mov eax, 0x517
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 dword [esp + 0x2c], esi
mov byte [esp + 0x4a], 4
mov dword [esp + 0x4b], eax
mov word [esp + 0x56], dx
mov word [esp + 0x5a], dx
test ecx, ecx
je 0x45d061
fld dword [0x574168]
push 5
push edx
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 [esi + 0x90]
lea edx, [eax - 2]
lea ebx, [eax + 2]
mov eax, dword [esi + 0x94]
lea esi, [eax + 2]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
lea ecx, [eax - 2]
mov dword [esp + 0x34], esi
test edx, edx
jge 0x45d091
mov dword [esp + 0x30], 0
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x2c]
cmp ebx, eax
jl 0x45d0a3
dec eax
mov dword [esp + 0x24], eax
test ecx, ecx
jge 0x45d0a9
xor ecx, ecx
mov eax, dword [edx + 0x30]
cmp esi, eax
jl 0x45d0b7
lea esi, [eax - 1]
mov dword [esp + 0x34], esi
cmp ecx, esi
mov dword [esp + 0x18], ecx
jg 0x45d5bf
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jg 0x45d5ac
jmp 0x45d0e0
mov esi, dword [esp + 0x20]
mov eax, dword [edi + 0xe0]
imul esi, esi, 0x124
mov ecx, dword [eax + 0x34]
mov ebx, dword [esp + 0x18]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + esi + 8]
push eax
mov dword [esp + 0x20], esi
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 + esi]
mov ecx, dword [edx + 0xc]
add eax, esi
test ecx, ecx
je 0x45d126
lea esi, [ecx - 8]
jmp 0x45d128
xor esi, esi
mov dword [eax + 4], esi
cmp esi, edx
je 0x45d33a
test esi, esi
je 0x45d33a
jmp 0x45d140
mov ebx, 1
cmp dword [esi + 0x1444], ebx
je case.default.0x45d1ef
mov edx, edi
mov eax, esi
call fcn.00457dc0
test al, al
jne case.default.0x45d1ef
cmp byte [esi + 0x5815], al
je case.default.0x45d1ef
cmp byte [esi + 0x5814], al
je case.default.0x45d1ef
mov eax, dword [esp + 0x2c]
fld dword [esi + 0xd0]
fsub dword [eax + 0x7c]
push ecx
fstp dword [esp + 0x18]
fld dword [esi + 0xd8]
fsub dword [eax + 0x84]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
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 + 0x14]
movzx ecx, byte [eax + 0x57]
mov dword [esp + 0x18], ecx
add esp, 4
fild dword [esp + 0x14]
fcompp
fnstsw ax
test bl, ah
jne case.default.0x45d1ef
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 0x32]
add eax, 0xffffffeb
cmp eax, 5
ja case.default.0x45d1ef
jmp dword [eax*4 + 0x45d614]
mov eax, edx
xor ebp, ebp
cmp byte [eax + 0x58], 0
jbe case.default.0x45d1ef
cmp byte [esi + 0x144c], 1
jne 0x45d251
xor eax, eax
cmp dword [esi + 0x5878], eax
je 0x45d231
cmp dword [esi + 0x68], 0xffffffff
je 0x45d231
cmp dword [esi + 0x5880], ebx
je 0x45d231
mov dword [esi + 0x587c], eax
mov dword [esi + 0x5878], eax
cmp dword [esi + 0x1270], ebx
mov byte [esi + 0x144c], 0
jge 0x45d246
mov dword [esi + 0x1270], ebx
lea ecx, [esi + 0x1634]
call fcn.00487030
mov edx, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.0045b9c0
push esi
mov ecx, edi
call fcn.00458610
mov ebx, edi
call fcn.00458980
cmp dword [esi + 0x1444], 1
je 0x45d2ff
cmp dword [edi + 0x1444], 1
je 0x45d2ff
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 0x58]
inc ebp
cmp ebp, edx
jge 0x45d2ff
mov ebx, 1
jmp 0x45d204
cmp byte [esi + 0x144c], bl
jne 0x45d2e4
xor eax, eax
cmp dword [esi + 0x5878], eax
je 0x45d2c5
cmp dword [esi + 0x68], 0xffffffff
je 0x45d2c5
cmp dword [esi + 0x5880], ebx
je 0x45d2c5
mov dword [esi + 0x587c], eax
mov dword [esi + 0x5878], eax
cmp dword [esi + 0x1270], ebx
mov byte [esi + 0x144c], al
jge 0x45d2d9
mov dword [esi + 0x1270], ebx
lea ecx, [esi + 0x1634]
call fcn.00487030
mov edx, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.0045b9c0
push esi
mov ecx, edi
call fcn.00458610
mov ebx, edi
call fcn.00458980
mov ebx, 1
mov eax, dword [edi + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
add eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x45d327
lea esi, [ecx - 8]
jmp 0x45d329
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45d33f
test esi, esi
jne 0x45d140
jmp 0x45d33f
mov ebx, 1
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + esi*4]
mov ebp, dword [esp + 0x1c]
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 + esi*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 + esi*4]
mov edx, dword [eax + ebp + 0x2c]
lea ecx, [eax + ebp + 0x2c]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x45d395
lea esi, [eax - 0x74]
jmp 0x45d397
xor esi, esi
mov dword [ecx + 4], esi
cmp esi, edx
je 0x45d579
test esi, esi
je 0x45d579
lea ebx, [ebx]
cmp dword [esi + 0x70], 0
je 0x45d431
cmp dword [esi + 0x6c], 0
jne 0x45d3c0
xor eax, eax
jmp 0x45d437
mov eax, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
add ebx, eax
cmp eax, ebx
jbe 0x45d3d1
call fcn.0051b1ad
mov ebp, dword [esi + 0x50]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
test ebp, ebp
jne 0x45d3fd
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 0x45d40b
test ebp, ebp
je 0x45d404
mov ebp, dword [ebp]
jmp 0x45d406
mov eax, dword [ebp]
mov ecx, eax
jmp 0x45d3e9
xor ebp, ebp
cmp ebx, dword [ebp + 0x18]
jae 0x45d410
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 ebx, 1
jmp 0x45d437
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je case.default.0x45d4c5
movzx ecx, byte [edi + 0x12d]
mov edx, dword [esi + 0xd4]
cmp dword [edx + 0x78], ecx
je case.default.0x45d4c5
mov eax, dword [esp + 0x2c]
fld dword [esi + 0x7c]
fsub dword [eax + 0x7c]
push ecx
fstp dword [esp + 0x2c]
fld dword [esi + 0x84]
fsub dword [eax + 0x84]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x2c]
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 + 0x14]
movzx ecx, byte [eax + 0x57]
mov dword [esp + 0x18], ecx
add esp, 4
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 1
jne case.default.0x45d4c5
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 0x32]
add eax, 0xffffffeb
cmp eax, 5
ja case.default.0x45d4c5
jmp dword [eax*4 + 0x45d62c]
mov eax, edx
xor ebp, ebp
cmp byte [eax + 0x58], 0
jbe case.default.0x45d4c5
mov ecx, dword [esp + 0x10]
push esi
call fcn.0045c320
mov ecx, esi
mov ebx, edi
call fcn.00458700
cmp dword [esi + 0x70], 0
je 0x45d508
cmp dword [esi + 0x6c], 0
jne 0x45d4f9
xor eax, eax
jmp 0x45d50e
lea eax, [esi + 0x50]
call fcn.00425af0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x48]
jmp 0x45d50e
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x45d53c
cmp dword [edi + 0x1444], 1
je 0x45d53c
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 0x58]
inc ebp
cmp ebp, eax
jl 0x45d4d6
jmp 0x45d53c
push esi
mov ecx, edx
call fcn.0045c320
mov ecx, esi
mov ebx, edi
call fcn.00458700
mov ebx, 1
mov ecx, dword [edi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + eax*4]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx + 0x2c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x78]
test ecx, ecx
je 0x45d568
lea esi, [ecx - 0x74]
jmp 0x45d56a
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45d579
test esi, esi
jne 0x45d3b0
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x1c]
lea ecx, [edx + eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x20]
add eax, ebx
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jle 0x45d0e0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jle 0x45d0c3
mov edx, dword [esp + 0x10]
cmp word [edx + 0x32], 0x17
jne 0x45d5fd
cmp dword [edi + 0x1444], 1
je 0x45d5fd
mov eax, dword [edi + 0xdc]
push eax
mov eax, dword [edi + 0x1234]
push 1
call fcn.00458120
test al, al
je 0x45d5fd
mov ecx, dword [edi + 0xdc]
push 0
push ecx
push 1
mov ecx, edi
call fcn.004654c0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x50
ret 4