Function at 0x40a1ab
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4273d7
call fcn.00425a20
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.00405979
lea ecx, [ebp - 0x34]
call fcn.004032fb
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.00405c8b
test al, al
je 0x40a403
mov eax, dword [esi + 0x48]
cmp eax, 2
je 0x40a3f1
cmp eax, ebx
jne 0x40a2d8
mov ecx, edi
call fcn.004037fe
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040a4a5
lea ecx, [ebp - 0x34]
mov edx, eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004032d7
push dword [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00403b98
pop ecx
lea edx, [ebp + 8]
push edx
mov dl, byte [esi + 0x3d]
neg dl
lea ebx, [esi + 0xd8]
mov eax, dword [ebp - 0x44]
sbb edx, edx
mov dword [ebp - 0x14], eax
and edx, ebx
lea ebx, [esi + 0xc0]
push edx
mov dl, byte [esi + 0xcb]
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 + 0x74]
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 0x40a279
mov esi, eax
jmp 0x40a294
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x40a2cc
dec eax
je 0x40a2c5
dec eax
je 0x40a2c1
dec eax
je 0x40a2ba
dec eax
je 0x40a2b1
dec eax
je 0x40a2aa
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.00403b98
push dword [ebp - 0x34]
call fcn.00403b98
pop ecx
jmp 0x40a3fb
mov esi, 0x80004004
jmp 0x40a294
mov dword [esi + 0x48], 3
jmp 0x40a2cc
mov dword [esi + 0x48], 2
xor esi, esi
jmp 0x40a294
mov dword [esi + 0x48], 1
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00403b98
pop ecx
mov eax, dword [esi + 0x48]
cmp eax, 3
jne 0x40a31a
mov ecx, edi
call fcn.00407899
test al, al
jne 0x40a30e
push edi
mov ecx, esi
push dword [0x429da0]
call fcn.00409c66
cmp eax, ebx
je 0x40a304
mov esi, eax
jmp 0x40a3f3
mov esi, 0x80004005
jmp 0x40a3f3
mov byte [esi + 0x174], 1
jmp 0x40a484
cmp eax, 4
jne 0x40a38e
push edi
lea ecx, [ebp - 0x18]
call fcn.004033ce
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00407899
test al, al
jne 0x40a348
push edi
mov ecx, esi
push dword [0x429da0]
call fcn.00409c66
jmp 0x40a36e
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.004055ee
test al, al
jne 0x40a381
call fcn.004062b2
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x429da4]
push eax
call fcn.00409d8c
cmp eax, ebx
mov esi, eax
jne 0x40a379
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x40a297
push dword [ebp - 0x18]
call fcn.00403b98
jmp 0x40a483
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x40a3b0
call fcn.004055e1
test al, al
jne 0x40a484
push edi
push dword [0x429dac]
jmp 0x40a3e2
call fcn.00406156
test al, al
je 0x40a484
mov ecx, dword [edi]
call fcn.004057cd
test al, al
jne 0x40a484
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40a484
push edi
push dword [0x429da8]
mov ecx, esi
call fcn.00409d70
cmp eax, ebx
jne 0x40a2fd
xor esi, esi
push dword [ebp - 0x34]
call fcn.00403b98
pop ecx
mov eax, esi
jmp 0x40a494
mov ecx, dword [edi]
call fcn.004069d3
mov esi, eax
cmp esi, ebx
jl 0x40a484
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x40a484
push edi
lea ecx, [ebp - 0x18]
call fcn.004033ce
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x40a435
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0xa0]
call fcn.00405979
lea ecx, [ebp - 0x78]
call fcn.004032fb
push ebx
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00405c8b
test al, al
je 0x40a472
mov edx, dword [ebp - 0x80]
test dl, 1
je 0x40a472
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.004055c0
push dword [ebp - 0x78]
call fcn.00403b98
push dword [ebp - 0x18]
call fcn.00403b98
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x34]
mov byte [eax], bl
call fcn.00403b98
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8