Function at 0x41d479
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x49e20b
call fcn.0049b0e0
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.004065ec
lea ecx, [ebp - 0x28]
call fcn.00402e41
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.00406a6e
test al, al
je 0x41d6c8
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x41d6b6
cmp eax, ebx
jne 0x41d59d
mov ecx, edi
call fcn.004032e5
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0041355c
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402de6
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401def
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 0x41d53e
mov esi, eax
jmp 0x41d559
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41d591
dec eax
je 0x41d58a
dec eax
je 0x41d586
dec eax
je 0x41d57f
dec eax
je 0x41d576
dec eax
je 0x41d56f
mov esi, 0x80004005
push dword [ebp - 0x18]
call fcn.00401def
push dword [ebp - 0x28]
call fcn.00401def
pop ecx
jmp 0x41d6c0
mov esi, 0x80004004
jmp 0x41d559
mov dword [esi + 0x64], 3
jmp 0x41d591
mov dword [esi + 0x64], 2
xor esi, esi
jmp 0x41d559
mov dword [esi + 0x64], 1
push dword [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00401def
pop ecx
mov eax, dword [esi + 0x64]
cmp eax, 3
jne 0x41d5df
mov ecx, edi
call fcn.0040ad59
test al, al
jne 0x41d5d3
push edi
mov ecx, esi
push dword [0x4a5b50]
call fcn.0041c94a
cmp eax, ebx
je 0x41d5c9
mov esi, eax
jmp 0x41d6b8
mov esi, 0x80004005
jmp 0x41d6b8
mov byte [esi + 0x1e8], 1
jmp 0x41d749
cmp eax, 4
jne 0x41d653
push edi
lea ecx, [ebp - 0x18]
call fcn.00402f14
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040ad59
test al, al
jne 0x41d60d
push edi
mov ecx, esi
push dword [0x4a5b50]
call fcn.0041c94a
jmp 0x41d633
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.00405b64
test al, al
jne 0x41d646
call fcn.00407320
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x4a5b54]
push eax
call fcn.0041ca48
cmp eax, ebx
mov esi, eax
jne 0x41d63e
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x41d55c
push dword [ebp - 0x18]
call fcn.00401def
jmp 0x41d748
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x41d675
call fcn.00405ae2
test al, al
jne 0x41d749
push edi
push dword [0x4a5b5c]
jmp 0x41d6a7
call fcn.00406ff8
test al, al
je 0x41d749
mov ecx, dword [edi]
call fcn.00406041
test al, al
jne 0x41d749
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41d749
push edi
push dword [0x4a5b58]
mov ecx, esi
call fcn.0041c9b7
cmp eax, ebx
jne 0x41d5c2
xor esi, esi
push dword [ebp - 0x28]
call fcn.00401def
pop ecx
mov eax, esi
jmp 0x41d759
mov ecx, dword [edi]
call fcn.0040852f
mov esi, eax
cmp esi, ebx
jl 0x41d749
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x41d749
push edi
lea ecx, [ebp - 0x18]
call fcn.00402f14
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x41d6fa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0x94]
call fcn.004065ec
lea ecx, [ebp - 0x6c]
call fcn.00402e41
push ebx
lea ecx, [ebp - 0x94]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00406a6e
test al, al
je 0x41d737
mov edx, dword [ebp - 0x74]
test dl, 1
je 0x41d737
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.00405a41
push dword [ebp - 0x6c]
call fcn.00401def
push dword [ebp - 0x18]
call fcn.00401def
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x28]
mov byte [eax], bl
call fcn.00401def
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8