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

Disassembly:
sub esp, 0x1b4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c4]
push edi
cmp dword [esi + 0x58], 2
jl 0x45fcc9
cmp dword [esi + 4], 0
jne 0x45f98e
mov eax, 0xffffff76
jmp 0x45fcce
mov ebx, dword [esp + 0x1d0]
test ebx, ebx
jl 0x45fcc9
mov edi, dword [esp + 0x1cc]
jg 0x45f9ae
test edi, edi
jb 0x45fcc9
cmp ebx, dword [esi + 0x14]
jg 0x45fcc9
jl 0x45f9c2
cmp edi, dword [esi + 0x10]
ja 0x45fcc9
cmp dword [esi + 0x58], 3
jl 0x45f9f0
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x38]
cmp ebx, dword [ecx + eax*8 + 4]
jl 0x45f9e9
jg 0x45f9db
cmp edi, dword [ecx + eax*8]
jb 0x45f9e9
cmp ebx, dword [ecx + eax*8 + 0xc]
jl 0x45f9f0
jg 0x45f9e9
cmp edi, dword [ecx + eax*8 + 8]
jb 0x45f9f0
push esi
call fcn.0045d7c8
pop ecx
push dword [esi + 0x5c]
or dword [esi + 0x50], 0xffffffff
lea ebp, [esi + 0x78]
or dword [esi + 0x54], 0xffffffff
push ebp
call fcn.00470f30
lea eax, [esi + 0x1e0]
push eax
call fcn.00461508
push ebx
push edi
push esi
call fcn.0045eb9c
add esp, 0x18
test eax, eax
lea eax, [esp + 0x5c]
je 0x45fa43
or dword [esi + 0x50], 0xffffffff
or dword [esi + 0x54], 0xffffffff
push eax
call fcn.004704a0
push esi
call fcn.0045d7c8
pop ecx
pop ecx
mov eax, 0xffffff77
jmp 0x45fcce
push dword [esi + 0x5c]
xor edi, edi
and dword [esp + 0x1c], edi
and dword [esp + 0x20], edi
and dword [esp + 0x18], edi
push eax
mov dword [esp + 0x18], edi
call fcn.00470800
lea eax, [esp + 0x64]
push eax
call fcn.00470ea0
add esp, 0xc
jmp 0x45fa71
mov edi, dword [esp + 0x10]
cmp dword [esi + 0x58], 3
jl 0x45fb18
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00470a90
pop ecx
pop ecx
test eax, eax
jle 0x45fb18
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x48]
shl ecx, 5
add eax, ecx
cmp dword [eax + 0x1c], 0
je 0x45fb0e
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.00461596
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jns 0x45fac6
push 0
push ebp
call fcn.00470a90
pop ecx
pop ecx
xor ebx, ebx
jmp 0x45faee
cmp dword [esp + 0x1c], 0
je 0x45fae0
cmp dword [esp + 0x14], 0
jne 0x45fae0
push 0
push ebp
call fcn.00470a90
pop ecx
pop ecx
jmp 0x45faee
test edi, edi
je 0x45faee
lea eax, [ebx + edi]
sar eax, 2
add dword [esp + 0x18], eax
mov ecx, dword [esp + 0x4c]
mov eax, ecx
mov edi, dword [esp + 0x50]
and eax, edi
cmp eax, 0xffffffff
jne 0x45fc35
mov edi, ebx
mov dword [esp + 0x10], edi
jmp 0x45fa71
push 0
push ebp
call fcn.00470a90
pop ecx
pop ecx
test edi, edi
jne 0x45fcab
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0045dddd
mov ecx, edx
mov dword [esp + 0x30], eax
add esp, 0x10
mov dword [esp + 0x28], ecx
test ecx, ecx
jl 0x45fc99
jg 0x45fb4e
test eax, eax
jb 0x45fc99
cmp dword [esi + 0x58], 3
jl 0x45fb8b
lea eax, [esp + 0x2c]
push eax
call reloc.SHELL32.dll_ShellExecuteExW
pop ecx
cmp dword [esi + 0x5c], eax
je 0x45fb85
lea eax, [esp + 0x2c]
push eax
call fcn.00470340
pop ecx
test eax, eax
je 0x45fb85
push esi
call fcn.0045d7c8
lea eax, [esp + 0x60]
push eax
call fcn.004704a0
pop ecx
pop ecx
cmp dword [esi + 0x58], 3
jge 0x45fc05
lea eax, [esp + 0x2c]
push eax
call reloc.SHELL32.dll_ShellExecuteExW
pop ecx
mov ecx, dword [esi + 0x34]
xor edi, edi
mov ebx, eax
test ecx, ecx
jle 0x45fbb0
mov eax, dword [esi + 0x40]
cmp dword [eax], ebx
je 0x45fbb0
inc edi
add eax, 4
cmp edi, ecx
jl 0x45fba4
cmp edi, ecx
je 0x45fa6d
push ebx
push ebp
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], ebx
call fcn.00470f30
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.00470f30
mov eax, dword [esi + 0x3c]
add esp, 0x10
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x58], 3
cmp ecx, dword [eax + edi*8 + 4]
jg 0x45fbfc
jl 0x45fbf2
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + edi*8]
ja 0x45fbfc
mov dword [esp + 0x14], 1
jmp 0x45fc01
and dword [esp + 0x14], 0
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.00470ad0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00470ad0
lea eax, [esp + 0x3c]
push eax
call fcn.004703d0
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x45fa71
mov ebx, dword [esi + 0x60]
mov eax, ebx
mov edx, dword [esi + 0x44]
shl eax, 4
sub ecx, dword [eax + edx]
sbb edi, dword [eax + edx + 4]
test edi, edi
jg 0x45fc62
jl 0x45fc51
test ecx, ecx
jae 0x45fc62
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test ebx, ebx
jle 0x45fc76
add edx, 8
add ecx, dword [edx]
adc edi, dword [edx + 4]
lea edx, [edx + 0x10]
sub ebx, 1
jne 0x45fc69
mov eax, dword [esp + 0x18]
cdq
sub ecx, eax
mov dword [esi + 0x50], ecx
sbb edi, edx
mov dword [esi + 0x54], edi
test edi, edi
jg 0x45fcb3
jl 0x45fc8f
test ecx, ecx
jae 0x45fcb3
and dword [esi + 0x50], 0
and dword [esi + 0x54], 0
jmp 0x45fcb3
push 0xffffffffffffffff
push esi
call fcn.0045f8f2
pop ecx
pop ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
jmp 0x45fcb3
or dword [esi + 0x50], 0xffffffff
or dword [esi + 0x54], 0xffffffff
lea eax, [esp + 0x5c]
push eax
call fcn.004704a0
xorps xmm0, xmm0
xor eax, eax
pop ecx
movups xmmword [esi + 0x68], xmm0
jmp 0x45fcce
mov eax, 0xffffff7d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b4
ret