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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443a56
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4e34
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 eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x4e44], esi
mov dword [ebp - 0x4e38], 1
mov dword [ebp - 0x4e3c], ebx
push eax
lea eax, [ebp - 0x2724]
push eax
mov dword [ebp - 4], ebx
call fcn.0042a290
mov eax, dword [esi + 0x98]
pop ecx
pop ecx
cmp eax, ebx
je 0x41dd7a
cmp byte [eax], bl
je 0x41dd7a
lea eax, [ebp - 0x2724]
push eax
call fcn.0042a410
push dword [esi + 0x98]
mov edi, eax
call fcn.0042a410
pop ecx
pop ecx
cmp edi, eax
jle 0x41dd7a
sub edi, eax
lea edi, [ebp + edi - 0x2724]
cmp byte [edi - 1], 0x2e
jne 0x41dd7a
push dword [esi + 0x98]
push edi
call fcn.00433f46
pop ecx
pop ecx
test eax, eax
jne 0x41dd7a
mov byte [edi - 1], al
lea eax, [ebp - 0x2724]
push 0x2e
push eax
call fcn.0042a260
mov edi, eax
lea eax, [ebp - 0x2724]
push 0x5c
push eax
call fcn.0042a260
add esp, 0x10
cmp edi, ebx
je 0x41ddac
cmp eax, edi
jbe 0x41dda5
xor edi, edi
cmp edi, ebx
je 0x41ddac
mov byte [edi], 0
cmp dword [esi + 0x14], ebx
je 0x41ddea
lea eax, [ebp - 0x2724]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x2724]
cmp byte [eax - 1], 0x29
jne 0x41ddea
add eax, 0xfffffffe
jmp 0x41dddd
mov cl, byte [eax]
cmp cl, 0x30
jl 0x41dde2
cmp cl, 0x39
jg 0x41dde2
dec eax
cmp byte [eax], 0
jne 0x41ddd0
cmp byte [eax], 0x28
jne 0x41ddea
mov byte [eax], 0
mov ecx, 0x45a0dc
call fcn.0041d299
mov eax, dword [ebp - 0x4e38]
inc dword [ebp - 0x4e38]
cmp edi, ebx
je 0x41de26
lea ecx, [edi + 1]
push ecx
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s
push eax
call fcn.0041cd40
add esp, 0x14
jmp 0x41de42
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_
push eax
call fcn.0041cd40
add esp, 0x10
mov eax, dword [ebp - 0x4e38]
push dword [ebp - 0x4e3c]
mov dword [ebp - 0x4e40], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ddf4
xor ebx, ebx
inc ebx
push dword [esi + 0x98]
mov eax, ebx
inc ebx
test edi, edi
je 0x41de91
lea ecx, [edi + 1]
push ecx
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s._s
push eax
call fcn.0041cd40
add esp, 0x18
jmp 0x41dead
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s
push eax
call fcn.0041cd40
add esp, 0x14
push dword [ebp - 0x4e3c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41de62
mov eax, dword [ebp - 0x4e40]
cmp eax, ebx
jg 0x41deca
mov eax, ebx
push dword [esi + 0x98]
xor ebx, ebx
dec eax
cmp edi, ebx
je 0x41def7
inc edi
push edi
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s._s
push eax
call fcn.0041cd40
add esp, 0x18
jmp 0x41df13
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s
push eax
call fcn.0041cd40
add esp, 0x14
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x41df24
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 0x41df3e
push edi
call fcn.0042a410
pop ecx
jmp 0x41df40
xor eax, eax
inc eax
push eax
call fcn.0042824d
pop ecx
mov dword [esi + 0x7c], eax
cmp eax, ebx
jne 0x41df59
call fcn.00404675
mov dword [ebp - 4], ebx
jmp 0x41df27
push edi
push eax
mov byte [ebp - 4], 0
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 0x41df8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [0x45a0f8]
push 0x45a0e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x4e34]
push eax
push edi
call fcn.0041ca71
pop ecx
pop ecx
mov dword [ebp - 0x4e38], ebx
lea eax, [ebp - 0x4e34]
push eax
mov byte [ebp - 4], 3
push 0x44b696
lea eax, [ebp - 0x4e38]
cmp dword [ebp + 0xc], ebx
je 0x41dfd2
push str._s___s_
jmp 0x41dfd7
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 0x41e00e
push dword [ebp - 0x4e38]
call fcn.004288f1
pop ecx
cmp edi, ebx
je 0x41e019
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 8