Function at 0x40c820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa983
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x63a188]
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, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [esi]
or eax, dword [esi + 4]
push 0
jne 0x40c88c
call fcn.004553f8
mov ecx, dword [esi + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [esi + 8]
shl ecx, 2
mov dword [esi], eax
mov dword [esi + 4], edx
test ecx, ecx
jle 0x40c899
push ecx
push 0
call fcn.00439957
cdq
add esp, 8
add dword [esi], eax
adc dword [esi + 4], edx
jmp 0x40c899
call fcn.004553f8
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.0043576f
test al, al
je 0x40c8ba
push edx
push esi
pop ebp
pop ecx
pop ecx
pop esp
push ecx
pop eax
pop edx
pop ebx
pop edx
push ebx
pop edi
pop edi
push edi
push ebp
push eax
push esp
push edx
push eax
pop edx
push ebp
pop ecx
push ecx
call fcn.004357b4
test al, al
je 0x40c8d3
push ecx
pop ecx
push edx
push ecx
push edx
push eax
push ecx
push eax
push edi
pop ecx
push edx
pop ebx
push ebp
push ebp
push eax
push eax
call fcn.00435b35
test al, al
je 0x40c8f4
pop esi
pop ebp
pop ecx
pop esp
push ecx
push esi
pop esi
push edx
push ebx
pop edi
pop ecx
pop eax
pop eax
push edi
push edi
push eax
push edx
pop esp
push ebp
push eax
push ecx
mov esi, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], eax
lea eax, [esi + 0x110]
push 0
push eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00407ed0
cmp dword [esi + 0x128], 0
mov dword [ebp - 4], 0
je 0x40ca26
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
lea ecx, [ebp - 0x40]
mov eax, esp
push ecx
push eax
call fcn.00443200
mov ecx, dword [esi + 0x128]
add esp, 8
push 0
call fcn.00409c30
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 0x40c9f9
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40c9a9
mov eax, dword [ecx]
jmp 0x40c9ab
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00408100
call fcn.00437cf4
mov dword [ebp - 0x60], eax
add esp, 0x1c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40c9e0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408370
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x40cb38
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40ca12
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408370
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x40cb38
push 0x1869f
push 0x2710
call fcn.00439957
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x5b0f0c
call fcn.0040cda0
push 8
push str.9edcd024
lea ecx, [ebp - 0x40]
call fcn.0040cda0
push 1
push 0x5b0f1c
lea ecx, [ebp - 0x40]
call fcn.0040cda0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00438f28
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040cca0
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x40caac
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408320
lea ecx, [ebp - 0xa4]
call fcn.00435dfd
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004363d8
lea ecx, [ebp - 0xa4]
call fcn.004367fc
mov esi, eax
mov ecx, 1
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmove eax, ecx
mov dword [ebp - 0x5c], eax
inc eax
push eax
call fcn.0043160f
mov ecx, dword [ebp - 0x5c]
mov ebx, eax
inc ecx
mov dword [ebp - 0x60], ebx
push ecx
push 0
push ebx
call fcn.0044e770
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x40cb26
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [edx + ebx], al
inc edx
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp edx, eax
jb 0x40cb14
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.00435e73
mov esi, dword [ebp - 0x64]
call fcn.0043576f
test al, al
je 0x40cb57
push ebp
push ebx
push ebx
push ecx
push esp
pop ebx
push edx
pop ebx
push edx
push esi
pop ebp
pop edx
pop ebp
push esi
push ecx
pop esp
pop esp
pop ecx
push ebx
pop edi
pop esp
pop eax
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x70], 0
push ebx
call fcn.0043b496
mov eax, dword [ebp - 0x68]
add esp, 0x10
test eax, eax
jne 0x40cb92
test ebx, ebx
je 0x40cbab
push ebx
call fcn.00431618
add esp, 4
jmp 0x40cbab
push eax
mov ecx, esi
call fcn.0040c440
test ebx, ebx
je 0x40cba7
push ebx
call fcn.00431618
add esp, 4
mov byte [esi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40cbf5
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40cbec
test cl, 0x1f
je 0x40cbc8
call fcn.00451231
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40cbd4
call fcn.00451231
sub ecx, eax
cmp ecx, 4
jae 0x40cbe0
call fcn.00451231
cmp ecx, 0x23
jbe 0x40cbea
call fcn.00451231
mov ecx, eax
push ecx
call fcn.00431343
add esp, 4
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.004315db
mov esp, ebp
pop ebp
ret