Function at 0x4145cb
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x473c0f
call fcn.0046f140
sub esp, 0x94
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x5c]
mov byte [eax], 1
call fcn.00406529
lea ecx, [ebp - 0x34]
call fcn.00402d90
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x5c]
mov eax, dword [edi]
mov dword [ebp - 4], ebx
push eax
call fcn.004069ab
test al, al
je 0x414826
mov eax, dword [esi + 0x48]
cmp eax, 2
je 0x414814
cmp eax, ebx
jne 0x4146fb
mov ecx, edi
call fcn.004032a6
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004148c8
lea ecx, [ebp - 0x34]
mov edx, eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00402d35
push dword [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401e89
pop ecx
lea edx, [ebp + 8]
push edx
mov dl, byte [esi + 0x3b]
neg dl
lea ebx, [esi + 0x108]
mov eax, dword [ebp - 0x44]
sbb edx, edx
mov dword [ebp - 0x14], eax
and edx, ebx
lea ebx, [esi + 0xf0]
push edx
mov dl, byte [esi + 0xfb]
neg dl
sbb edx, edx
mov eax, dword [ebp - 0x40]
and edx, ebx
mov dword [ebp - 0x10], eax
push edx
mov eax, dword [esi + 0x50]
push dword [esi + 0x80]
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x24]
push eax
call dword [ecx + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x41469c
mov esi, eax
jmp 0x4146b7
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x4146ef
dec eax
je 0x4146e8
dec eax
je 0x4146e4
dec eax
je 0x4146dd
dec eax
je 0x4146d4
dec eax
je 0x4146cd
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.00401e89
push dword [ebp - 0x34]
call fcn.00401e89
pop ecx
jmp 0x41481e
mov esi, 0x80004004
jmp 0x4146b7
mov dword [esi + 0x48], 3
jmp 0x4146ef
mov dword [esi + 0x48], 2
xor esi, esi
jmp 0x4146b7
mov dword [esi + 0x48], 1
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00401e89
pop ecx
mov eax, dword [esi + 0x48]
cmp eax, 3
jne 0x41473d
mov ecx, edi
call fcn.0040ac19
test al, al
jne 0x414731
push edi
mov ecx, esi
push dword [0x47a384]
call fcn.00413a8b
cmp eax, ebx
je 0x414727
mov esi, eax
jmp 0x414816
mov esi, 0x80004005
jmp 0x414816
mov byte [esi + 0x1f0], 1
jmp 0x4148a7
cmp eax, 4
jne 0x4147b1
push edi
lea ecx, [ebp - 0x18]
call fcn.00402ea8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040ac19
test al, al
jne 0x41476b
push edi
mov ecx, esi
push dword [0x47a384]
call fcn.00413a8b
jmp 0x414791
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.004058ce
test al, al
jne 0x4147a4
call fcn.0040729c
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x47a388]
push eax
call fcn.00413b8e
cmp eax, ebx
mov esi, eax
jne 0x41479c
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x4146ba
push dword [ebp - 0x18]
call fcn.00401e89
jmp 0x4148a6
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x4147d3
call fcn.0040584c
test al, al
jne 0x4148a7
push edi
push dword [0x47a390]
jmp 0x414805
call fcn.00406f6c
test al, al
je 0x4148a7
mov ecx, dword [edi]
call fcn.00405db5
test al, al
jne 0x4148a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4148a7
push edi
push dword [0x47a38c]
mov ecx, esi
call fcn.00413af8
cmp eax, ebx
jne 0x414720
xor esi, esi
push dword [ebp - 0x34]
call fcn.00401e89
pop ecx
mov eax, esi
jmp 0x4148b7
mov ecx, dword [edi]
call fcn.004085e5
mov esi, eax
cmp esi, ebx
jl 0x4148a7
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x4148a7
push edi
lea ecx, [ebp - 0x18]
call fcn.00402ea8
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x414858
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0xa0]
call fcn.00406529
lea ecx, [ebp - 0x78]
call fcn.00402d90
push ebx
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004069ab
test al, al
je 0x414895
mov edx, dword [ebp - 0x80]
test dl, 1
je 0x414895
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.004057ab
push dword [ebp - 0x78]
call fcn.00401e89
push dword [ebp - 0x18]
call fcn.00401e89
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x34]
mov byte [eax], bl
call fcn.00401e89
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8