Function at 0x40b25d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x42a11b
call fcn.00428640
sub esp, 0x88
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x50]
mov byte [eax], 1
call fcn.00403d38
lea ecx, [ebp - 0x28]
call fcn.0040263a
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x50]
mov eax, dword [edi]
mov dword [ebp - 4], ebx
push eax
call fcn.00403fef
test al, al
je 0x40b4ac
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x40b49a
cmp eax, ebx
jne 0x40b381
mov ecx, edi
call fcn.00402ad2
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00408689
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402616
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0040215b
pop ecx
lea edx, [ebp + 8]
push edx
mov dl, byte [esi + 0xd8]
neg dl
lea ebx, [esi + 0xd0]
mov eax, dword [esi + 0x34]
sbb edx, edx
and edx, ebx
lea ebx, [esi + 0xb8]
push edx
mov dl, byte [esi + 0xc6]
neg dl
sbb edx, edx
mov ecx, dword [eax]
and edx, ebx
push edx
lea edx, [ebp - 0x50]
push dword [esi + 0x6c]
push edx
lea edx, [ebp - 0x38]
push edx
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x40b322
mov esi, eax
jmp 0x40b33d
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x40b375
dec eax
je 0x40b36e
dec eax
je 0x40b36a
dec eax
je 0x40b363
dec eax
je 0x40b35a
dec eax
je 0x40b353
mov esi, 0x80004005
push dword [ebp - 0x18]
call fcn.0040215b
push dword [ebp - 0x28]
call fcn.0040215b
pop ecx
jmp 0x40b4a4
mov esi, 0x80004004
jmp 0x40b33d
mov dword [esi + 0x64], 3
jmp 0x40b375
mov dword [esi + 0x64], 2
xor esi, esi
jmp 0x40b33d
mov dword [esi + 0x64], 1
push dword [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040215b
pop ecx
mov eax, dword [esi + 0x64]
cmp eax, 3
jne 0x40b3c3
mov ecx, edi
call fcn.00406581
test al, al
jne 0x40b3b7
push edi
mov ecx, esi
push dword [0x42cbcc]
call fcn.0040ad54
cmp eax, ebx
je 0x40b3ad
mov esi, eax
jmp 0x40b49c
mov esi, 0x80004005
jmp 0x40b49c
mov byte [esi + 0x174], 1
jmp 0x40b52d
cmp eax, 4
jne 0x40b437
push edi
lea ecx, [ebp - 0x18]
call fcn.0040270d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406581
test al, al
jne 0x40b3f1
push edi
mov ecx, esi
push dword [0x42cbcc]
call fcn.0040ad54
jmp 0x40b417
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.00403a2c
test al, al
jne 0x40b42a
call fcn.0040479c
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x42cbd0]
push eax
call fcn.0040ae52
cmp eax, ebx
mov esi, eax
jne 0x40b422
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x40b340
push dword [ebp - 0x18]
call fcn.0040215b
jmp 0x40b52c
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x40b459
call fcn.00403a1f
test al, al
jne 0x40b52d
push edi
push dword [0x42cbd8]
jmp 0x40b48b
call fcn.004044c6
test al, al
je 0x40b52d
mov ecx, dword [edi]
call fcn.00403c0b
test al, al
jne 0x40b52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b52d
push edi
push dword [0x42cbd4]
mov ecx, esi
call fcn.0040adc1
cmp eax, ebx
jne 0x40b3a6
xor esi, esi
push dword [ebp - 0x28]
call fcn.0040215b
pop ecx
mov eax, esi
jmp 0x40b53d
mov ecx, dword [edi]
call fcn.00404e1b
mov esi, eax
cmp esi, ebx
jl 0x40b52d
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x40b52d
push edi
lea ecx, [ebp - 0x18]
call fcn.0040270d
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x40b4de
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0x94]
call fcn.00403d38
lea ecx, [ebp - 0x6c]
call fcn.0040263a
push ebx
lea ecx, [ebp - 0x94]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00403fef
test al, al
je 0x40b51b
mov edx, dword [ebp - 0x74]
test dl, 1
je 0x40b51b
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.004039fe
push dword [ebp - 0x6c]
call fcn.0040215b
push dword [ebp - 0x18]
call fcn.0040215b
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x28]
mov byte [eax], bl
call fcn.0040215b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8