Function at 0x416056
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4aa777
call fcn.004a51d0
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.00406b7c
lea ecx, [ebp - 0x34]
call fcn.00402ff3
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.004070c2
test al, al
je 0x4162b1
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x41629f
cmp eax, ebx
jne 0x416186
mov ecx, edi
call fcn.004035ba
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00416353
lea ecx, [ebp - 0x34]
mov edx, eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00402f98
push dword [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401e9f
pop ecx
lea edx, [ebp + 8]
push edx
mov dl, byte [esi + 0x4d]
neg dl
lea ebx, [esi + 0x118]
mov eax, dword [ebp - 0x44]
sbb edx, edx
mov dword [ebp - 0x14], eax
and edx, ebx
lea ebx, [esi + 0x100]
push edx
mov dl, byte [esi + 0x10b]
neg dl
sbb edx, edx
mov eax, dword [ebp - 0x40]
and edx, ebx
mov dword [ebp - 0x10], eax
push edx
mov eax, dword [esi + 0x60]
push dword [esi + 0x94]
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 0x416127
mov esi, eax
jmp 0x416142
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41617a
dec eax
je 0x416173
dec eax
je 0x41616f
dec eax
je 0x416168
dec eax
je 0x41615f
dec eax
je 0x416158
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.00401e9f
push dword [ebp - 0x34]
call fcn.00401e9f
pop ecx
jmp 0x4162a9
mov esi, 0x80004004
jmp 0x416142
mov dword [esi + 0x58], 3
jmp 0x41617a
mov dword [esi + 0x58], 2
xor esi, esi
jmp 0x416142
mov dword [esi + 0x58], 1
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00401e9f
pop ecx
mov eax, dword [esi + 0x58]
cmp eax, 3
jne 0x4161c8
mov ecx, edi
call fcn.0040b889
test al, al
jne 0x4161bc
push edi
mov ecx, esi
push dword [0x4b2474]
call fcn.004154fd
cmp eax, ebx
je 0x4161b2
mov esi, eax
jmp 0x4162a1
mov esi, 0x80004005
jmp 0x4162a1
mov byte [esi + 0x200], 1
jmp 0x416332
cmp eax, 4
jne 0x41623c
push edi
lea ecx, [ebp - 0x18]
call fcn.0040310b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040b889
test al, al
jne 0x4161f6
push edi
mov ecx, esi
push dword [0x4b2474]
call fcn.004154fd
jmp 0x41621c
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.00405f58
test al, al
jne 0x41622f
call fcn.004079b1
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x4b2478]
push eax
call fcn.00415623
cmp eax, ebx
mov esi, eax
jne 0x416227
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x416145
push dword [ebp - 0x18]
call fcn.00401e9f
jmp 0x416331
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x41625e
call fcn.00405ed6
test al, al
jne 0x416332
push edi
push dword [0x4b2480]
jmp 0x416290
call fcn.00407681
test al, al
je 0x416332
mov ecx, dword [edi]
call fcn.0040640f
test al, al
jne 0x416332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x416332
push edi
push dword [0x4b247c]
mov ecx, esi
call fcn.00415607
cmp eax, ebx
jne 0x4161ab
xor esi, esi
push dword [ebp - 0x34]
call fcn.00401e9f
pop ecx
mov eax, esi
jmp 0x416342
mov ecx, dword [edi]
call fcn.00408ce6
mov esi, eax
cmp esi, ebx
jl 0x416332
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x416332
push edi
lea ecx, [ebp - 0x18]
call fcn.0040310b
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x4162e3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0xa0]
call fcn.00406b7c
lea ecx, [ebp - 0x78]
call fcn.00402ff3
push ebx
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004070c2
test al, al
je 0x416320
mov edx, dword [ebp - 0x80]
test dl, 1
je 0x416320
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.00405e35
push dword [ebp - 0x78]
call fcn.00401e9f
push dword [ebp - 0x18]
call fcn.00401e9f
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x34]
mov byte [eax], bl
call fcn.00401e9f
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8