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

Disassembly:
sub esp, 0x58
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, edx
mov dx, word [ebp]
mov eax, dword [esi + 0xdc]
mov word [esp + 0x57], dx
mov dl, byte [ebp + 2]
mov byte [esp + 0x59], dl
xor edx, edx
push edi
mov edi, ecx
mov ecx, 0x511
mov word [esp + 0x5e], dx
mov word [esp + 0x60], dx
mov word [esp + 0x62], dx
mov edx, dword [edi + 0xe0]
mov word [esp + 0x50], cx
mov ecx, dword [edi + 0xdc]
mov ebx, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], ebp
mov byte [esp + 0x52], bl
mov dword [esp + 0x53], ecx
mov dword [esp + 0x57], eax
test edx, edx
je 0x45e8d6
fld dword [0x574168]
push 5
push eax
push ecx
push ecx
fstp dword [esp]
lea eax, [edi + 0xd0]
push eax
push 0x14
lea ecx, [esp + 0x68]
push ecx
push edx
call fcn.00427cf0
mov byte [esp + 0x1b], 0
cmp dword [edi + 0x558c], ebx
jne 0x45e904
mov edx, dword [esi + 0x5594]
cmp edx, dword [edi + 0xdc]
jne 0x45e904
mov eax, dword [edi + 0x5594]
cmp eax, dword [esi + 0xdc]
jne 0x45e904
mov byte [esp + 0x1b], 1
cmp dword [edi + 0x55a4], 0
je 0x45e912
mov byte [esp + 0x1b], 1
mov eax, dword [esi + 0xe4]
lea edx, [eax - 2]
lea ebx, [eax + 2]
mov eax, dword [esi + 0xe8]
lea esi, [eax + 2]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ebx
lea ecx, [eax - 2]
mov dword [esp + 0x3c], esi
test edx, edx
jge 0x45e942
mov dword [esp + 0x34], 0
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x2c]
cmp ebx, eax
jl 0x45e954
dec eax
mov dword [esp + 0x2c], eax
test ecx, ecx
jge 0x45e95a
xor ecx, ecx
mov eax, dword [edx + 0x30]
cmp esi, eax
jl 0x45e968
lea esi, [eax - 1]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x20], ecx
jg 0x45ee79
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jg 0x45ee66
jmp 0x45e990
mov esi, dword [esp + 0x28]
mov ecx, dword [edi + 0xe0]
imul esi, esi, 0x124
mov edx, dword [ecx + 0x34]
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + ebx*4]
lea ecx, [eax + esi + 8]
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax + esi]
mov ecx, dword [edx + 0xc]
add eax, esi
test ecx, ecx
je 0x45e9d6
lea esi, [ecx - 8]
jmp 0x45e9d8
xor esi, esi
mov dword [eax + 4], esi
cmp esi, edx
je 0x45ebe9
test esi, esi
je 0x45ebe9
jmp 0x45e9f0
mov ebx, 1
cmp dword [esi + 0x1444], ebx
je case.default.0x45eaa0
mov edx, edi
mov eax, esi
call fcn.00457dc0
test al, al
jne case.default.0x45eaa0
cmp byte [esi + 0x5815], al
je case.default.0x45eaa0
cmp byte [esi + 0x5814], al
je case.default.0x45eaa0
mov eax, dword [esp + 0x38]
fld dword [esi + 0xd0]
fsub dword [eax + 0xd0]
push ecx
fstp dword [esp + 0x20]
fld dword [esi + 0xd8]
fsub dword [eax + 0xd8]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [esp + 0x20]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.0041b8a0
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx + 0x57]
mov dword [esp + 0x20], edx
add esp, 4
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test bl, ah
jne case.default.0x45eaa0
mov eax, ecx
movzx eax, word [eax + 0x32]
add eax, 0xffffffeb
cmp eax, 5
ja case.default.0x45eaa0
jmp dword [eax*4 + 0x45eee0]
xor ebp, ebp
cmp byte [ecx + 0x58], 0
jbe case.default.0x45eaa0
cmp byte [esi + 0x144c], 1
jne 0x45eb00
xor eax, eax
cmp dword [esi + 0x5878], eax
je 0x45eae0
cmp dword [esi + 0x68], 0xffffffff
je 0x45eae0
cmp dword [esi + 0x5880], ebx
je 0x45eae0
mov dword [esi + 0x587c], eax
mov dword [esi + 0x5878], eax
cmp dword [esi + 0x1270], ebx
mov byte [esi + 0x144c], 0
jge 0x45eaf5
mov dword [esi + 0x1270], ebx
lea ecx, [esi + 0x1634]
call fcn.00487030
mov edx, dword [esp + 0x14]
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 0x45ebae
cmp dword [edi + 0x1444], 1
je 0x45ebae
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + 0x58]
inc ebp
cmp ebp, eax
jge 0x45ebae
mov ebx, 1
jmp 0x45eab3
cmp byte [esi + 0x144c], bl
jne 0x45eb93
xor eax, eax
cmp dword [esi + 0x5878], eax
je 0x45eb74
cmp dword [esi + 0x68], 0xffffffff
je 0x45eb74
cmp dword [esi + 0x5880], ebx
je 0x45eb74
mov dword [esi + 0x587c], eax
mov dword [esi + 0x5878], eax
cmp dword [esi + 0x1270], ebx
mov byte [esi + 0x144c], al
jge 0x45eb88
mov dword [esi + 0x1270], ebx
lea ecx, [esi + 0x1634]
call fcn.00487030
mov edx, dword [esp + 0x14]
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 ecx, dword [edi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [esp + 0x20]
mov eax, dword [edx + eax*4]
add eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x45ebd6
lea esi, [ecx - 8]
jmp 0x45ebd8
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45ebee
test esi, esi
jne 0x45e9f0
jmp 0x45ebee
mov ebx, 1
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov esi, dword [esp + 0x20]
mov ecx, dword [eax + esi*4]
mov ebp, dword [esp + 0x24]
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 0x45ec44
lea esi, [eax - 0x74]
jmp 0x45ec46
xor esi, esi
mov dword [ecx + 4], esi
cmp esi, edx
je 0x45ee33
test esi, esi
je 0x45ee33
lea esp, [esp]
cmp dword [esi + 0x70], 0
je 0x45ece1
cmp dword [esi + 0x6c], 0
jne 0x45ec70
xor eax, eax
jmp 0x45ece7
mov eax, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
add ebx, eax
cmp eax, ebx
jbe 0x45ec81
call fcn.0051b1ad
mov ebp, dword [esi + 0x50]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
test ebp, ebp
jne 0x45ecad
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 0x45ecbb
test ebp, ebp
je 0x45ecb4
mov ebp, dword [ebp]
jmp 0x45ecb6
mov eax, dword [ebp]
mov ecx, eax
jmp 0x45ec99
xor ebp, ebp
cmp ebx, dword [ebp + 0x18]
jae 0x45ecc0
call fcn.0051b1ad
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
call fcn.00425b90
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov ebx, 1
jmp 0x45ece7
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je case.default.0x45ed7c
movzx ecx, byte [edi + 0x12d]
mov edx, dword [esi + 0xd4]
cmp dword [edx + 0x78], ecx
je case.default.0x45ed7c
mov eax, dword [esp + 0x38]
fld dword [esi + 0x7c]
fsub dword [eax + 0xd0]
push ecx
fstp dword [esp + 0x34]
fld dword [esi + 0x84]
fsub dword [eax + 0xd8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [esp + 0x34]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.0041b8a0
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 0x57]
mov dword [esp + 0x20], ecx
add esp, 4
fild dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 1
jne case.default.0x45ed7c
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 0x32]
add eax, 0xffffffeb
cmp eax, 5
ja case.default.0x45ed7c
jmp dword [eax*4 + 0x45eef8]
mov eax, edx
xor ebp, ebp
cmp byte [eax + 0x58], 0
jbe case.default.0x45ed7c
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
push esi
call fcn.0045c320
mov ecx, esi
mov ebx, edi
call fcn.00458700
cmp dword [esi + 0x70], 0
je 0x45edc2
cmp dword [esi + 0x6c], 0
jne 0x45edb3
xor eax, eax
jmp 0x45edc8
lea eax, [esi + 0x50]
call fcn.00425af0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x48]
jmp 0x45edc8
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x45edf6
cmp dword [edi + 0x1444], 1
je 0x45edf6
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + 0x58]
inc ebp
cmp ebp, eax
jl 0x45ed90
jmp 0x45edf6
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 + 0x20]
mov ecx, dword [edx + eax*4]
mov edx, dword [esp + 0x24]
lea eax, [ecx + edx + 0x2c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x78]
test ecx, ecx
je 0x45ee22
lea esi, [ecx - 0x74]
jmp 0x45ee24
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45ee33
test esi, esi
jne 0x45ec60
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x24]
lea ecx, [edx + eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x28]
add eax, ebx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jle 0x45e990
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jle 0x45e974
mov edx, dword [esp + 0x14]
cmp word [edx + 0x32], 0x17
jne 0x45eec9
cmp dword [edi + 0x1444], 1
je 0x45eec9
mov eax, dword [edi + 0xdc]
push eax
mov eax, dword [edi + 0x1234]
push 1
call fcn.00458120
test al, al
je 0x45eec9
cmp byte [esp + 0x1b], 0
je 0x45eeb7
mov ecx, dword [edi + 0xdc]
push 1
push ecx
jmp 0x45eec0
mov edx, dword [edi + 0xdc]
push 0
push edx
push 1
mov ecx, edi
call fcn.004654c0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x58
ret 4