Function at 0x405a20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x413640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x41b5c0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push str.filename
lea ecx, [esp + 0x10c]
mov dword [esp + 0x160], eax
mov dword [esp + 0x1c], ebp
call dword [0x41516c]
mov esi, dword [esp + 0x170]
lea eax, [esp + 0x108]
push eax
mov ecx, esi
mov dword [esp + 0x16c], 0
call fcn.00402530
push eax
lea ecx, [esp + 0xf0]
call dword [0x415158]
lea ecx, [esp + 0x108]
mov byte [esp + 0x168], 2
call dword [0x41515c]
lea ecx, [esp + 0xb4]
call dword [0x4151b4]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x168], 3
call dword [0x4151b4]
push str.name
lea ecx, [esp + 0x9c]
mov byte [esp + 0x16c], 4
call dword [0x41516c]
mov edi, dword [esi + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x170], 5
call fcn.004047d0
cmp dword [eax], edi
lea ecx, [esp + 0x98]
setne bl
mov byte [esp + 0x168], 4
call dword [0x41515c]
test bl, bl
je 0x405b59
push str.name
lea ecx, [esp + 0x64]
call dword [0x41516c]
lea edx, [esp + 0x60]
push edx
mov ecx, esi
mov byte [esp + 0x16c], 6
call fcn.00402530
push eax
lea ecx, [esp + 0xb8]
call dword [0x4151b8]
lea ecx, [esp + 0x60]
mov byte [esp + 0x168], 4
call dword [0x41515c]
push str.clsid
lea ecx, [esp + 0x9c]
call dword [0x41516c]
mov edi, dword [esi + 4]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x170], 7
call fcn.004047d0
cmp dword [eax], edi
lea ecx, [esp + 0x98]
setne bl
mov byte [esp + 0x168], 4
call dword [0x41515c]
test bl, bl
je 0x405be4
push str.clsid
lea ecx, [esp + 0x64]
call dword [0x41516c]
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x16c], 8
call fcn.00402530
push eax
lea ecx, [esp + 0x80]
call dword [0x4151b8]
lea ecx, [esp + 0x60]
mov byte [esp + 0x168], 4
call dword [0x41515c]
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x144]
push eax
call fcn.00408f00
mov edi, eax
push 0x4155cc
lea ecx, [ebp + 0x6c]
push ecx
lea edx, [esp + 0x134]
push edx
mov byte [esp + 0x17c], 9
call fcn.00401790
push edi
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x188], 0xa
call fcn.00401690
add esp, 0x20
lea ecx, [esp + 0x124]
mov byte [esp + 0x168], 0xd
call dword [0x41517c]
lea ecx, [esp + 0x140]
mov byte [esp + 0x168], 0xc
call dword [0x41517c]
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x405c69
lea eax, [esp + 0x48]
push eax
call dword [0x415350]
test eax, eax
je 0x405cce
mov ebx, dword [esp + 0x174]
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0xb8]
push edx
push ebx
lea eax, [esp + 0x6c]
push eax
mov ecx, ebp
call fcn.00403ca0
test bl, bl
mov byte [esp + 0x168], 0xe
je 0x405d48
mov ecx, dword [ebp + 0x114]
push ecx
call fcn.00409670
add esp, 4
test al, al
jne 0x405d48
lea ecx, [esp + 0x60]
mov byte [esp + 0x168], 0xc
call dword [0x41515c]
lea ecx, [esp + 0x44]
mov byte [esp + 0x168], 4
call dword [0x41517c]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x168], 3
call dword [0x41515c]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x168], 2
call dword [0x41515c]
lea ecx, [esp + 0xec]
mov dword [esp + 0x168], 0xffffffff
call dword [0x41515c]
xor al, al
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x15c]
call fcn.00412959
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret 0xc
mov edi, dword [0x415110]
mov dword [esp + 0x1c], 0
call edi
lea edx, [esp + 0x13]
push edx
mov ebx, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
sub esp, 0x1c
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call dword [0x415184]
call fcn.00409450
add esp, 0x28
mov byte [esp + 0x12], al
call edi
mov edi, eax
mov al, byte [esp + 0x12]
sub edi, ebx
test al, al
je 0x405dff
mov edx, dword [esp + 0x174]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb8]
push ecx
push edx
lea eax, [esp + 0xdc]
push eax
mov ecx, ebp
call fcn.00403ca0
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0xd4]
push edx
mov byte [esp + 0x170], 0xf
call dword [0x4151c4]
add esp, 8
test al, al
je 0x405dea
mov dword [esp + 0x14], 3
mov byte [esp + 0x13], 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x168], 0xe
call dword [0x41515c]
mov cl, byte [esp + 0x174]
xor eax, eax
test cl, cl
sete al
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2c]
push edx
inc eax
mov ebp, eax
call fcn.00409970
add esp, 8
mov edx, dword [eax + 0x18]
mov ecx, 0x10
cmp edx, ecx
mov byte [esp + 0x168], cl
jb 0x405e3a
mov eax, dword [eax + 4]
jmp 0x405e3d
add eax, 4
push eax
lea ecx, [esp + 0x9c]
call dword [0x41516c]
mov bl, 0x12
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], bl
call dword [0x41515c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0x4156c8
push edi
push 0x4156cc
push eax
push 0x4156cc
push ecx
mov ecx, dword [esp + 0x190]
push 0x4156cc
lea edx, [esp + 0xb4]
push edx
push 0x4156cc
push ebp
add ecx, 8
call dword [0x4151e0]
mov edi, dword [0x4151dc]
push eax
call edi
add esp, 8
push eax
call fcn.00401990
add esp, 8
push eax
call edi
add esp, 8
mov ecx, eax
call dword [0x4151e0]
push eax
call edi
add esp, 8
mov ecx, eax
call dword [0x4151e4]
push eax
call edi
add esp, 8
mov ecx, eax
call dword [0x4151e4]
push eax
call edi
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
je 0x405f81
push str.gcid
lea ecx, [esp + 0xd4]
call dword [0x41516c]
lea eax, [esp + 0xd0]
push eax
mov ecx, esi
mov byte [esp + 0x16c], 0x13
call fcn.00402530
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [0x415158]
mov ecx, dword [esp + 0x34]
sub esp, 0x1c
lea edx, [ecx + 0xa4]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
mov byte [esp + 0x1a4], 0x14
call dword [0x415184]
mov byte [esp + 0x1a0], 0x13
call fcn.0040b950
add esp, 0x38
lea ecx, [esp + 0xd0]
mov byte [esp + 0x168], bl
call dword [0x41515c]
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x405f7a
lea eax, [esp + 0x48]
push eax
call dword [0x4150ac]
mov al, byte [esp + 0x174]
test al, al
je 0x405faf
mov eax, dword [esp + 0x18]
push 0
sub esp, 0x1c
add eax, 0xdc
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [0x415184]
call fcn.00409330
add esp, 0x20
lea ecx, [esp + 0x98]
mov byte [esp + 0x168], 0xe
call dword [0x41515c]
lea ecx, [esp + 0x60]
mov byte [esp + 0x168], 0xc
call dword [0x41515c]
lea ecx, [esp + 0x44]
mov byte [esp + 0x168], 4
call dword [0x41517c]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x168], 3
call dword [0x41515c]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x168], 2
call dword [0x41515c]
lea ecx, [esp + 0xec]
mov dword [esp + 0x168], 0xffffffff
call dword [0x41515c]
mov al, byte [esp + 0x12]
jmp 0x405d21