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

Disassembly:
sub esp, 0x24
mov edx, dword [esp + 0x30]
push ebx
push ebp
push esi
mov eax, dword [esp + 0x34]
mov esi, ecx
mov ecx, dword [esp + 0x38]
xor ebp, ebp
mov dword [esi + 0x5c], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x96], edx
mov dword [esi + 0x92], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x9e], edx
mov dword [esi + 0x9a], edx
mov edx, dword [eax + 0x54]
mov dword [esi + 0x8a], edx
mov eax, dword [eax + 0x58]
mov dword [esi + 0x8e], eax
mov eax, dword [ecx + 0x5f47]
mov dword [esi + 0x60], eax
push edi
mov ebx, dword [eax + 0x74]
mov edx, dword [eax + 0x78]
mov eax, dword [ecx + 0x5e28]
mov dword [esp + 0x3c], ebx
test eax, eax
mov dword [esp + 0x40], edx
jle 0x45f2b4
mov ebx, dword [0x4f0198]
mov dword [esp + 0x38], 0x5e30
lea edi, [esi + 0x78]
mov eax, dword [esi + 0x58]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + eax]
lea eax, [esp + 0x20]
add edx, 0x4c
push edx
push eax
call dword [0x4f0138]
lea ecx, [esp + 0x20]
push str.NOCOLOR
push ecx
call ebx
test eax, eax
jne 0x45f234
mov word [edi], ax
jmp 0x45f292
lea edx, [esp + 0x20]
push 0x5052bc
push edx
call ebx
test eax, eax
jne 0x45f24b
mov word [edi], 0xf242
jmp 0x45f292
lea eax, [esp + 0x20]
push 0x5052b4
push eax
call ebx
test eax, eax
jne 0x45f262
mov word [edi], 0x42c
jmp 0x45f292
lea ecx, [esp + 0x20]
push 0x5052ac
push ecx
call ebx
test eax, eax
jne 0x45f279
mov word [edi], 0x24ff
jmp 0x45f292
lea edx, [esp + 0x20]
push 0x5052a4
push edx
call ebx
test eax, eax
jne 0x45f41f
mov word [edi], 0xfd20
mov eax, dword [esp + 0x38]
inc ebp
add eax, 4
add edi, 2
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x58]
cmp ebp, dword [eax + 0x5e28]
jl 0x45f206
mov ebx, dword [esp + 0x3c]
mov edi, dword [esi + 0x8a]
mov eax, ebx
cdq
idiv edi
mov ecx, 1
cmp eax, 1
jl 0x45f2cb
mov ecx, eax
imul edi, ecx
cmp edi, ebx
jge 0x45f2d3
inc ecx
mov ebp, dword [esp + 0x40]
mov edi, dword [esi + 0x8e]
mov eax, ebp
cdq
idiv edi
cmp eax, 1
jge 0x45f2ec
mov eax, 1
imul edi, eax
cmp edi, ebp
jge 0x45f2f4
inc eax
cmp ecx, eax
jg 0x45f2fa
mov ecx, eax
mov eax, ebx
mov edi, dword [esi + 0x64]
cdq
idiv ecx
mov dword [esi + 0xa2], ecx
mov dword [esp + 0x38], eax
mov dword [esi + 0x8a], eax
mov eax, ebp
cdq
fild dword [esp + 0x38]
idiv ecx
fst qword [esp + 0x18]
mov dword [esi + 0x8e], eax
mov dword [esp + 0x3c], eax
fidivr dword [edi + 0x54]
fild dword [esp + 0x3c]
fst qword [esp + 0x20]
fild dword [edi + 0x58]
fdiv st(1)
fstp qword [esp + 0x10]
fstp st(0)
fcom qword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x45f350
fstp st(0)
fld qword [esp + 0x10]
fst qword [esi + 0xa6]
fld qword [esp + 0x18]
fmul st(1)
call fcn.004ecc00
mov dword [esi + 0x8a], eax
mov ebx, dword [edi + 0x54]
cmp ebx, eax
jl 0x45f370
mov ebx, eax
mov dword [esi + 0x8a], ebx
mov eax, dword [edi + 0x54]
fld qword [esp + 0x20]
sub eax, ebx
cdq
fmul st(1)
sub eax, edx
mov edx, dword [esp + 0x4c]
sar eax, 1
add eax, edx
mov dword [esi + 0x92], eax
call fcn.004ecc00
mov dword [esi + 0x8e], eax
mov ebp, dword [edi + 0x58]
cmp ebp, eax
fstp st(0)
jl 0x45f3a8
mov ebp, eax
mov dword [esi + 0x8e], ebp
mov eax, dword [edi + 0x58]
mov edi, dword [esp + 0x50]
sub eax, ebp
mov ecx, dword [esi + 0x58]
push 0x800
cdq
sub eax, edx
lea edx, [esi + 0x68]
sar eax, 1
add eax, edi
push edx
mov dword [esi + 0x9a], eax
mov ecx, dword [ecx + 0x5f37]
push ebp
push ebx
call fcn.00407620
test al, al
je 0x45f41f
mov ecx, dword [esi + 0x8a]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
cmp eax, ecx
jge 0x45f3fc
add eax, 4
mov ecx, dword [esi + 0x58]
lea edx, [esi + 0x6c]
push 0x800
push edx
mov edx, dword [esi + 0x8e]
mov ecx, dword [ecx + 0x5f37]
push edx
push eax
call fcn.00407620
test al, al
jne 0x45f443
push str.Init:_Failure_
push esi
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x1c
mov eax, dword [esi + 0x5c]
lea edi, [esp + 0x20]
push edi
mov ecx, dword [eax + 0x7e]
mov eax, dword [eax + 0x86]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x60]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x60]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004afa10
mov ecx, dword [eax]
mov dword [esi + 0xae], ecx
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x8a]
mov dword [esi + 0xb2], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xb6], eax
mov eax, dword [esi + 0x8e]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xba], eax
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x5f33]
test ecx, ecx
je 0x45f4bc
mov dword [esi + 0xbe], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret 0x1c