Function at 0x410c48
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x43cd8b
call fcn.0043b650
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.00405ddb
lea ecx, [ebp - 0x28]
call fcn.00402b75
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.0040625d
test al, al
je 0x410eab
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x410e99
cmp eax, ebx
jne 0x410d80
mov ecx, edi
call fcn.0040305e
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00414373
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00414373
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401c54
pop ecx
lea edx, [ebp + 8]
push edx
mov dl, byte [esi + 0x108]
neg dl
lea ebx, [esi + 0x100]
mov eax, dword [esi + 0x34]
sbb edx, edx
and edx, ebx
lea ebx, [esi + 0xe8]
push edx
mov dl, byte [esi + 0xf6]
neg dl
sbb edx, edx
mov ecx, dword [eax]
and edx, ebx
push edx
lea edx, [ebp - 0x50]
push dword [esi + 0x78]
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 0x410d21
mov esi, eax
jmp 0x410d3c
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x410d74
dec eax
je 0x410d6d
dec eax
je 0x410d69
dec eax
je 0x410d62
dec eax
je 0x410d59
dec eax
je 0x410d52
mov esi, 0x80004005
push dword [ebp - 0x18]
call fcn.00401c54
push dword [ebp - 0x28]
call fcn.00401c54
pop ecx
jmp 0x410ea3
mov esi, 0x80004004
jmp 0x410d3c
mov dword [esi + 0x64], 3
jmp 0x410d74
mov dword [esi + 0x64], 2
xor esi, esi
jmp 0x410d3c
mov dword [esi + 0x64], 1
push dword [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00401c54
pop ecx
mov eax, dword [esi + 0x64]
cmp eax, 3
jne 0x410dc2
mov ecx, edi
call fcn.0040a71a
test al, al
jne 0x410db6
push edi
mov ecx, esi
push dword [0x441f54]
call fcn.0041012d
cmp eax, ebx
je 0x410dac
mov esi, eax
jmp 0x410e9b
mov esi, 0x80004005
jmp 0x410e9b
mov byte [esi + 0x1e8], 1
jmp 0x410f2c
cmp eax, 4
jne 0x410e36
push edi
lea ecx, [ebp - 0x18]
call fcn.00402c8d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040a71a
test al, al
jne 0x410df0
push edi
mov ecx, esi
push dword [0x441f54]
call fcn.0041012d
jmp 0x410e16
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.00405344
test al, al
jne 0x410e29
call fcn.00406b0a
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x441f58]
push eax
call fcn.0041022b
cmp eax, ebx
mov esi, eax
jne 0x410e21
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x410d3f
push dword [ebp - 0x18]
call fcn.00401c54
jmp 0x410f2b
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x410e58
call fcn.004052c2
test al, al
jne 0x410f2c
push edi
push dword [0x441f60]
jmp 0x410e8a
call fcn.004067e2
test al, al
je 0x410f2c
mov ecx, dword [edi]
call fcn.0040582b
test al, al
jne 0x410f2c
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x410f2c
push edi
push dword [0x441f5c]
mov ecx, esi
call fcn.0041019a
cmp eax, ebx
jne 0x410da5
xor esi, esi
push dword [ebp - 0x28]
call fcn.00401c54
pop ecx
mov eax, esi
jmp 0x410f3c
mov ecx, dword [edi]
call fcn.00407e1f
mov esi, eax
cmp esi, ebx
jl 0x410f2c
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x410f2c
push edi
lea ecx, [ebp - 0x18]
call fcn.00402c8d
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x410edd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0x94]
call fcn.00405ddb
lea ecx, [ebp - 0x6c]
call fcn.00402b75
push ebx
lea ecx, [ebp - 0x94]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040625d
test al, al
je 0x410f1a
mov edx, dword [ebp - 0x74]
test dl, 1
je 0x410f1a
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.00405221
push dword [ebp - 0x6c]
call fcn.00401c54
push dword [ebp - 0x18]
call fcn.00401c54
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x28]
mov byte [eax], bl
call fcn.00401c54
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8