Function at 0x41d5cf
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x49e59b
call fcn.0049b470
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.004066b0
lea ecx, [ebp - 0x28]
call fcn.00402e23
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.00406b32
test al, al
je 0x41d81e
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x41d80c
cmp eax, ebx
jne 0x41d6f3
mov ecx, edi
call fcn.0040330c
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004137e1
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402dc8
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401dd1
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 0x41d694
mov esi, eax
jmp 0x41d6af
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41d6e7
dec eax
je 0x41d6e0
dec eax
je 0x41d6dc
dec eax
je 0x41d6d5
dec eax
je 0x41d6cc
dec eax
je 0x41d6c5
mov esi, 0x80004005
push dword [ebp - 0x18]
call fcn.00401dd1
push dword [ebp - 0x28]
call fcn.00401dd1
pop ecx
jmp 0x41d816
mov esi, 0x80004004
jmp 0x41d6af
mov dword [esi + 0x64], 3
jmp 0x41d6e7
mov dword [esi + 0x64], 2
xor esi, esi
jmp 0x41d6af
mov dword [esi + 0x64], 1
push dword [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00401dd1
pop ecx
mov eax, dword [esi + 0x64]
cmp eax, 3
jne 0x41d735
mov ecx, edi
call fcn.0040af1c
test al, al
jne 0x41d729
push edi
mov ecx, esi
push dword [0x4a6b7c]
call fcn.0041caa0
cmp eax, ebx
je 0x41d71f
mov esi, eax
jmp 0x41d80e
mov esi, 0x80004005
jmp 0x41d80e
mov byte [esi + 0x1e8], 1
jmp 0x41d89f
cmp eax, 4
jne 0x41d7a9
push edi
lea ecx, [ebp - 0x18]
call fcn.00402f3b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040af1c
test al, al
jne 0x41d763
push edi
mov ecx, esi
push dword [0x4a6b7c]
call fcn.0041caa0
jmp 0x41d789
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.00405c23
test al, al
jne 0x41d79c
call fcn.004073df
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x4a6b80]
push eax
call fcn.0041cb9e
cmp eax, ebx
mov esi, eax
jne 0x41d794
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x41d6b2
push dword [ebp - 0x18]
call fcn.00401dd1
jmp 0x41d89e
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x41d7cb
call fcn.00405ba1
test al, al
jne 0x41d89f
push edi
push dword [0x4a6b88]
jmp 0x41d7fd
call fcn.004070b7
test al, al
je 0x41d89f
mov ecx, dword [edi]
call fcn.00406100
test al, al
jne 0x41d89f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41d89f
push edi
push dword [0x4a6b84]
mov ecx, esi
call fcn.0041cb0d
cmp eax, ebx
jne 0x41d718
xor esi, esi
push dword [ebp - 0x28]
call fcn.00401dd1
pop ecx
mov eax, esi
jmp 0x41d8af
mov ecx, dword [edi]
call fcn.004086f4
mov esi, eax
cmp esi, ebx
jl 0x41d89f
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x41d89f
push edi
lea ecx, [ebp - 0x18]
call fcn.00402f3b
cmp esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x41d850
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], bx
lea ecx, [ebp - 0x94]
call fcn.004066b0
lea ecx, [ebp - 0x6c]
call fcn.00402e23
push ebx
lea ecx, [ebp - 0x94]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00406b32
test al, al
je 0x41d88d
mov edx, dword [ebp - 0x74]
test dl, 1
je 0x41d88d
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
call fcn.00405b00
push dword [ebp - 0x6c]
call fcn.00401dd1
push dword [ebp - 0x18]
call fcn.00401dd1
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x28]
mov byte [eax], bl
call fcn.00401dd1
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8