Function at 0x445d50
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a60f7
mov eax, dword fs:[0]
push eax
sub esp, 0x3e4
mov eax, dword [0x4c9860]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
push ecx
lea ecx, [ebp - 0x3f0]
call fcn.00457b60
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor bl, bl
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0x493e0
mov dword [ebp - 0x270], 0x7530
mov dword [ebp - 0x26c], 0x7530
je 0x445fb0
cmp dword [esi + 0x14], 8
jb 0x445dd8
mov eax, dword [esi]
jmp 0x445dda
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x445fb0
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x445dfb
mov eax, dword [esi]
jmp 0x445dfd
mov eax, esi
push 0
push 0x80
push 3
push 0
push 1
push 8
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x445e28
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004821a0
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.00444aa0
mov byte [ebp - 4], 1
mov edx, eax
lea ecx, [ebp - 0x230]
call fcn.0042c680
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x445e6e
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x21c], 8
jb 0x445e9b
push dword [ebp - 0x230]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x24c], 0x10
jb 0x445ed2
push dword [ebp - 0x260]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x445f2b
xor ecx, ecx
jmp 0x445f43
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445f34
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040c0d0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x328]
call fcn.0040bd60
mov byte [ebp - 4], 0
cmp dword [ebp - 0x234], 8
jb 0x445f8b
push dword [ebp - 0x248]
call fcn.0047cf40
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov bl, 1
cmp dword [esi + 0x14], 8
jb 0x445fba
mov ecx, dword [esi]
jmp 0x445fbc
mov ecx, esi
xor eax, eax
test bl, bl
setne al
push 0
push 0x80
lea eax, [eax*2 + 2]
push eax
push 0
push 0
push 0x40000000
push ecx
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x445fec
xor bl, bl
jmp 0x4460b6
push 3
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x4b35ac
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x268], 1
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040c0d0
mov byte [ebp - 4], 4
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x3f0]
call fcn.00458180
mov bl, al
mov byte [ebp - 4], 0
cmp dword [ebp - 0x21c], 8
jb 0x446070
push dword [ebp - 0x230]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
test bl, bl
je 0x4460af
cmp dword [esi + 0x10], eax
jne 0x44609a
xor bl, bl
jmp 0x4460af
cmp dword [esi + 0x14], 8
jb 0x4460a2
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.00457e40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cf45
mov esp, ebp
pop ebp
ret