Function at 0x45aef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5715c8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5f4760]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5f4118]
cmp eax, dword [ecx + 4]
jg 0x45b15b
cmp byte [0x5f4114], 0
jne 0x45b132
lea eax, [ebp - 0x48]
mov byte [0x5f4114], 1
push eax
call fcn.0045b1a0
add esp, 4
cmp dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
je 0x45b0fb
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a7f20
add esp, 8
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x45b0ce
lea eax, [ebp - 0x28]
xor bl, bl
push 0
push eax
call fcn.0042ba20
add esp, 8
test al, al
je 0x45b0aa
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x45afca
push 0x5ae738
lea ecx, [ebp - 0x28]
call fcn.0042ef80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.drwtsn32.exe
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040c291
add esp, 8
test eax, eax
jne 0x45b011
push eax
push str.drwtsn32.exe
lea eax, [ebp - 0x7c]
push 0x29
push eax
call fcn.0042f230
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.0040f610
lea ecx, [ebp - 0x7c]
call fcn.0040a280
jmp 0x45b0aa
lea ecx, [ebp - 0x64]
call fcn.004984d0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00498810
test al, al
je 0x45b09a
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
movlpd qword [ebp - 0x30], xmm0
call fcn.00498470
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x7c]
push 1
push eax
call fcn.004a7e30
add esp, 0xc
mov bl, al
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x45b07e
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.00498500
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00498550
test bl, bl
je 0x45b0ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b0ce
lea eax, [ebp - 0x28]
mov ecx, 0x5ed998
push eax
call fcn.0042b100
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x45b0e7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 7
cmp eax, 8
jb 0x45b117
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
push 0x5ed998
mov ecx, esi
call fcn.0040a1e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
push 0x5f4118
call fcn.00410499
add esp, 4
cmp dword [0x5f4118], 0xffffffff
jne 0x45af40
push 0x57f840
call fcn.00405ffc
push 0x5f4118
call fcn.00410720
add esp, 8
jmp 0x45af40