Function at 0x41d9fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443a18
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4e30
call fcn.0042a390
mov eax, dword [0x45a400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x4e40], esi
mov dword [ebp - 0x4e38], 1
mov dword [ebp - 0x4e3c], ebx
push dword [esi + 0x7c]
lea eax, [ebp - 0x4e34]
push eax
mov dword [ebp - 4], ebx
call fcn.0042a290
mov eax, dword [esi + 0x98]
pop ecx
pop ecx
cmp eax, ebx
je 0x41dab1
cmp byte [eax], bl
je 0x41dab1
lea eax, [ebp - 0x4e34]
push eax
call fcn.0042a410
push dword [esi + 0x98]
mov edi, eax
call fcn.0042a410
pop ecx
pop ecx
cmp edi, eax
jle 0x41dab1
sub edi, eax
lea edi, [ebp + edi - 0x4e34]
cmp byte [edi - 1], 0x2e
jne 0x41dab1
push dword [esi + 0x98]
push edi
call fcn.00433f46
pop ecx
pop ecx
test eax, eax
jne 0x41dab1
mov byte [edi - 1], bl
lea eax, [ebp - 0x4e34]
push 0x2e
push eax
call fcn.0042a260
mov edi, eax
lea eax, [ebp - 0x4e34]
push 0x5c
push eax
call fcn.0042a260
add esp, 0x10
cmp edi, ebx
je 0x41dae2
cmp eax, edi
jbe 0x41dadc
xor edi, edi
cmp edi, ebx
je 0x41dae2
mov byte [edi], bl
cmp dword [esi + 0x14], ebx
je 0x41db1e
lea eax, [ebp - 0x4e34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x4e34]
cmp byte [eax - 1], 0x29
jne 0x41db1e
add eax, 0xfffffffe
jmp 0x41db13
mov cl, byte [eax]
cmp cl, 0x30
jl 0x41db17
cmp cl, 0x39
jg 0x41db17
dec eax
cmp byte [eax], bl
jne 0x41db06
cmp byte [eax], 0x28
jne 0x41db1e
mov byte [eax], bl
mov ecx, 0x45a0dc
call fcn.0041d299
mov eax, dword [ebp - 0x4e38]
inc dword [ebp - 0x4e38]
cmp edi, ebx
je 0x41db5a
lea ecx, [edi + 1]
push ecx
push eax
lea eax, [ebp - 0x4e34]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s
push eax
call fcn.0041cd40
add esp, 0x14
jmp 0x41db76
push eax
lea eax, [ebp - 0x4e34]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_
push eax
call fcn.0041cd40
add esp, 0x10
push dword [ebp - 0x4e3c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41db28
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x41db98
push eax
call fcn.004288f1
pop ecx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x7c], ebx
mov edi, dword [ebp - 0x4e3c]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x41dbb2
push edi
call fcn.0042a410
pop ecx
jmp 0x41dbb4
xor eax, eax
inc eax
push eax
call fcn.0042824d
pop ecx
mov dword [esi + 0x7c], eax
cmp eax, ebx
jne 0x41dbcd
call fcn.00404675
mov dword [ebp - 4], ebx
jmp 0x41db9b
push edi
push eax
mov byte [ebp - 4], bl
call fcn.0042a290
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x41dbfd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [0x45a0f8]
push 0x45a0e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x2724]
push eax
push edi
call fcn.0041ca71
pop ecx
pop ecx
mov dword [ebp - 0x4e38], ebx
lea eax, [ebp - 0x2724]
push eax
mov byte [ebp - 4], 3
push 0x44b696
lea eax, [ebp - 0x4e38]
cmp dword [ebp + 8], ebx
je 0x41dc45
push str._s___s_
jmp 0x41dc4a
push str._s__s
push eax
call fcn.0041cd40
add esp, 0x10
push 4
push dword [ebp - 0x4e38]
mov ecx, esi
call fcn.0041cebd
push 3
push 0x15
mov ecx, esi
call fcn.0041cfcc
cmp dword [ebp - 0x4e38], ebx
je 0x41dc81
push dword [ebp - 0x4e38]
call fcn.004288f1
pop ecx
cmp edi, ebx
je 0x41dc8c
push edi
call fcn.004288f1
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00428263
leave
ret 4