Function at 0x45e170
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
mov ebp, dword [esp + 0x5c]
push esi
mov esi, ecx
mov cx, word [ebp]
mov word [esp + 0x4f], cx
xor ecx, ecx
push edi
mov edi, edx
mov dl, byte [ebp + 2]
mov eax, 0x511
mov word [esp + 0x56], cx
mov word [esp + 0x5a], cx
mov ecx, dword [edi + 0xe0]
mov word [esp + 0x48], ax
mov eax, dword [edi + 0xdc]
mov byte [esp + 0x55], dl
xor edx, edx
mov ebx, 4
mov dword [esp + 0x10], ebp
mov byte [esp + 0x4a], bl
mov dword [esp + 0x4b], eax
mov dword [esp + 0x4f], 0
mov word [esp + 0x58], dx
test ecx, ecx
je 0x45e202
fld dword [0x574168]
push 5
push edx
push eax
push ecx
fstp dword [esp]
lea edx, [edi + 0xd0]
push edx
push 0x14
lea eax, [esp + 0x60]
push eax
push ecx
call fcn.00427cf0
mov byte [esp + 0x17], 0
cmp dword [edi + 0x558c], ebx
jne 0x45e230
mov ecx, dword [esi + 0x5594]
cmp ecx, dword [edi + 0xdc]
jne 0x45e230
mov edx, dword [edi + 0x5594]
cmp edx, dword [esi + 0xdc]
jne 0x45e230
mov byte [esp + 0x17], 1
cmp dword [edi + 0x55a4], 0
je 0x45e23e
mov byte [esp + 0x17], 1
mov eax, dword [edi + 0xe4]
lea edx, [eax - 2]
lea esi, [eax + 2]
mov eax, dword [edi + 0xe8]
lea ebx, [eax + 2]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], esi
lea ecx, [eax - 2]
mov dword [esp + 0x34], ebx
test edx, edx
jge 0x45e26e
mov dword [esp + 0x30], 0
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x2c]
cmp esi, eax
jl 0x45e280
dec eax
mov dword [esp + 0x28], eax
test ecx, ecx
jge 0x45e286
xor ecx, ecx
mov eax, dword [edx + 0x30]
cmp ebx, eax
jl 0x45e294
lea ebx, [eax - 1]
mov dword [esp + 0x34], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jg 0x45e79e
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
jg 0x45e78b
jmp 0x45e2c0
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0xe0]
imul esi, esi, 0x124
mov ecx, dword [eax + 0x34]
mov ebx, dword [esp + 0x1c]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + esi + 8]
push eax
mov dword [esp + 0x24], 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 0x45e306
lea esi, [ecx - 8]
jmp 0x45e308
xor esi, esi
mov dword [eax + 4], esi
cmp esi, edx
je 0x45e519
test esi, esi
je 0x45e519
jmp 0x45e320
mov ebx, 1
cmp dword [esi + 0x1444], ebx
je case.default.0x45e3ce
mov edx, edi
mov eax, esi
call fcn.00457dc0
test al, al
jne case.default.0x45e3ce
cmp byte [esi + 0x5815], al
je case.default.0x45e3ce
cmp byte [esi + 0x5814], al
je case.default.0x45e3ce
fld dword [esi + 0xd0]
push ecx
fsub dword [edi + 0xd0]
fstp dword [esp + 0x1c]
fld dword [esi + 0xd8]
fsub dword [edi + 0xd8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [esp + 0x1c]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0041b8a0
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x57]
mov dword [esp + 0x1c], ecx
add esp, 4
fild dword [esp + 0x18]
fcompp
fnstsw ax
test bl, ah
jne case.default.0x45e3ce
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 0x32]
add eax, 0xffffffeb
cmp eax, 5
ja case.default.0x45e3ce
jmp dword [eax*4 + 0x45e804]
mov eax, edx
xor ebp, ebp
cmp byte [eax + 0x58], 0
jbe case.default.0x45e3ce
cmp byte [esi + 0x144c], 1
jne 0x45e430
xor eax, eax
cmp dword [esi + 0x5878], eax
je 0x45e410
cmp dword [esi + 0x68], 0xffffffff
je 0x45e410
cmp dword [esi + 0x5880], ebx
je 0x45e410
mov dword [esi + 0x587c], eax
mov dword [esi + 0x5878], eax
cmp dword [esi + 0x1270], ebx
mov byte [esi + 0x144c], 0
jge 0x45e425
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 0x45e4de
cmp dword [edi + 0x1444], 1
je 0x45e4de
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 0x58]
inc ebp
cmp ebp, edx
jge 0x45e4de
mov ebx, 1
jmp 0x45e3e3
cmp byte [esi + 0x144c], bl
jne 0x45e4c3
xor eax, eax
cmp dword [esi + 0x5878], eax
je 0x45e4a4
cmp dword [esi + 0x68], 0xffffffff
je 0x45e4a4
cmp dword [esi + 0x5880], ebx
je 0x45e4a4
mov dword [esi + 0x587c], eax
mov dword [esi + 0x5878], eax
cmp dword [esi + 0x1270], ebx
mov byte [esi + 0x144c], al
jge 0x45e4b8
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 + 0x1c]
mov eax, dword [ecx + edx*4]
add eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x45e506
lea esi, [ecx - 8]
jmp 0x45e508
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45e51e
test esi, esi
jne 0x45e320
jmp 0x45e51e
mov ebx, 1
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
mov ebp, dword [esp + 0x20]
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 0x45e574
lea esi, [eax - 0x74]
jmp 0x45e576
xor esi, esi
mov dword [ecx + 4], esi
cmp esi, edx
je 0x45e758
test esi, esi
je 0x45e758
lea esp, [esp]
cmp dword [esi + 0x70], 0
je 0x45e611
cmp dword [esi + 0x6c], 0
jne 0x45e5a0
xor eax, eax
jmp 0x45e617
mov eax, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
add ebx, eax
cmp eax, ebx
jbe 0x45e5b1
call fcn.0051b1ad
mov ebp, dword [esi + 0x50]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
test ebp, ebp
jne 0x45e5dd
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 0x45e5eb
test ebp, ebp
je 0x45e5e4
mov ebp, dword [ebp]
jmp 0x45e5e6
mov eax, dword [ebp]
mov ecx, eax
jmp 0x45e5c9
xor ebp, ebp
cmp ebx, dword [ebp + 0x18]
jae 0x45e5f0
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 0x45e617
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je case.default.0x45e6a4
movzx ecx, byte [edi + 0x12d]
mov edx, dword [esi + 0xd4]
cmp dword [edx + 0x78], ecx
je case.default.0x45e6a4
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 + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x30]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0041b8a0
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x57]
mov dword [esp + 0x1c], ecx
add esp, 4
fild dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 1
jne case.default.0x45e6a4
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 0x32]
add eax, 0xffffffeb
cmp eax, 5
ja case.default.0x45e6a4
jmp dword [eax*4 + 0x45e81c]
mov eax, edx
xor ebp, ebp
cmp byte [eax + 0x58], 0
jbe case.default.0x45e6a4
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 0x45e6e7
cmp dword [esi + 0x6c], 0
jne 0x45e6d8
xor eax, eax
jmp 0x45e6ed
lea eax, [esi + 0x50]
call fcn.00425af0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x48]
jmp 0x45e6ed
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x45e71b
cmp dword [edi + 0x1444], 1
je 0x45e71b
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 0x58]
inc ebp
cmp ebp, eax
jl 0x45e6b5
jmp 0x45e71b
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 + 0x1c]
mov ecx, dword [edx + eax*4]
mov edx, dword [esp + 0x20]
lea eax, [ecx + edx + 0x2c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x78]
test ecx, ecx
je 0x45e747
lea esi, [ecx - 0x74]
jmp 0x45e749
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x45e758
test esi, esi
jne 0x45e590
mov edx, dword [edi + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x20]
lea ecx, [edx + eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x24]
add eax, ebx
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
jle 0x45e2c0
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jle 0x45e2a0
mov edx, dword [esp + 0x10]
cmp word [edx + 0x32], 0x17
jne 0x45e7ee
cmp dword [edi + 0x1444], 1
je 0x45e7ee
mov eax, dword [edi + 0xdc]
push eax
mov eax, dword [edi + 0x1234]
push 1
call fcn.00458120
test al, al
je 0x45e7ee
cmp byte [esp + 0x17], 0
je 0x45e7dc
mov ecx, dword [edi + 0xdc]
push 1
push ecx
jmp 0x45e7e5
mov edx, dword [edi + 0xdc]
push 0
push edx
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