Function at 0x40bb9b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x42abcf
call fcn.00429110
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.00403e1b
lea ecx, [ebp - 0x34]
call fcn.004026e1
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.004040d2
test al, al
je 0x40bdf6
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x40bde4
cmp eax, ebx
jne 0x40bccb
mov ecx, edi
call fcn.00402b79
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00408dfb
lea ecx, [ebp - 0x34]
mov edx, eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004026bd
push dword [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.004021bf
pop ecx
lea edx, [ebp + 8]
push edx
mov dl, byte [esi + 0xe8]
neg dl
lea ebx, [esi + 0xe0]
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 + 0x34]
push dword [esi + 0x6c]
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 0x40bc6c
mov esi, eax
jmp 0x40bc87
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x40bcbf
dec eax
je 0x40bcb8
dec eax
je 0x40bcb4
dec eax
je 0x40bcad
dec eax
je 0x40bca4
dec eax
je 0x40bc9d
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.004021bf
push dword [ebp - 0x34]
call fcn.004021bf
pop ecx
jmp 0x40bdee
mov esi, 0x80004004
jmp 0x40bc87
mov dword [esi + 0x64], 3
jmp 0x40bcbf
mov dword [esi + 0x64], 2
xor esi, esi
jmp 0x40bc87
mov dword [esi + 0x64], 1
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004021bf
pop ecx
mov eax, dword [esi + 0x64]
cmp eax, 3
jne 0x40bd0d
mov ecx, edi
call fcn.004069f1
test al, al
jne 0x40bd01
push edi
mov ecx, esi
push dword [0x42dc14]
call fcn.0040b65a
cmp eax, ebx
je 0x40bcf7
mov esi, eax
jmp 0x40bde6
mov esi, 0x80004005
jmp 0x40bde6
mov byte [esi + 0x18c], 1
jmp 0x40be77
cmp eax, 4
jne 0x40bd81
push edi
lea ecx, [ebp - 0x18]
call fcn.004027b4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004069f1
test al, al
jne 0x40bd3b
push edi
mov ecx, esi
push dword [0x42dc14]
call fcn.0040b65a
jmp 0x40bd61
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.00403af5
test al, al
jne 0x40bd74
call fcn.0040486d
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x42dc18]
push eax
call fcn.0040b75d
cmp eax, ebx
mov esi, eax
jne 0x40bd6c
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x40bc8a
push dword [ebp - 0x18]
call fcn.004021bf
jmp 0x40be76
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x40bda3
call fcn.00403ae8
test al, al
jne 0x40be77
push edi
push dword [0x42dc20]
jmp 0x40bdd5
call fcn.00404598
test al, al
je 0x40be77
mov ecx, dword [edi]
call fcn.00403cd4
test al, al
jne 0x40be77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40be77
push edi
push dword [0x42dc1c]
mov ecx, esi
call fcn.0040b6c7
cmp eax, ebx
jne 0x40bcf0
xor esi, esi
push dword [ebp - 0x34]
call fcn.004021bf
pop ecx
mov eax, esi
jmp 0x40be87
mov ecx, dword [edi]
call fcn.00404ff2
mov esi, eax
cmp esi, ebx
jl 0x40be77
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x40be77
push edi
lea ecx, [ebp - 0x18]
call fcn.004027b4
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x40be28
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0xa0]
call fcn.00403e1b
lea ecx, [ebp - 0x78]
call fcn.004026e1
push ebx
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004040d2
test al, al
je 0x40be65
mov edx, dword [ebp - 0x80]
test dl, 1
je 0x40be65
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.00403ac7
push dword [ebp - 0x78]
call fcn.004021bf
push dword [ebp - 0x18]
call fcn.004021bf
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x34]
mov byte [eax], bl
call fcn.004021bf
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8