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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49178b
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x4b20bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], eax
cmp dword [esi + 0x10], 0
jne 0x41c8e3
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41c8dc
test byte [eax + 0x1c], 4
je 0x41c8dc
cmp byte [eax + 0x19], 5
jb 0x41c8dc
cmp dword [esi + 0x14], 0x10
jb 0x41c8c6
mov esi, dword [esi]
push esi
push 0x4980e0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041be00
add esp, 0x14
xor al, al
jmp 0x41cc56
push esi
lea ecx, [ebp - 0x40]
call fcn.004045e0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
jb 0x41c8ff
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
cmp eax, 1
jne 0x41cb62
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
push 0x104
lfence
call fcn.0041cd40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x41c942
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
push 0x400000
call esi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x41c9ca
dec eax
cmp eax, ecx
ja 0x41c974
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
jb 0x41c96b
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ecx + eax], 0
jmp 0x41c984
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
lfence
call fcn.0041cd40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x41c990
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
push 0x400000
call esi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x41c9ca
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41ca07
test byte [eax + 0x1c], 4
je 0x41ca07
cmp byte [eax + 0x19], 5
jb 0x41ca07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4980e0
push 0xf
jmp 0x41c9f4
test eax, eax
jne 0x41ca16
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41ca07
test byte [eax + 0x1c], 4
je 0x41ca07
cmp byte [eax + 0x19], 5
jb 0x41ca07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4980e0
push 0x10
mov eax, dword [0x4b2000]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041d180
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00407550
xor bl, bl
jmp 0x41cc4c
cmp eax, ecx
ja 0x41ca2f
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
jb 0x41ca26
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ecx + eax], 0
jmp 0x41ca3f
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
lfence
call fcn.0041cd40
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.004045e0
mov edi, eax
cmp dword [edi + 0x14], 0x10
mov esi, dword [edi + 0x10]
jb 0x41ca58
mov edi, dword [edi]
test esi, esi
je 0x41cac8
push 0x100
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.00446a30
add esp, 0xc
mov ecx, 0x4980f4
mov edx, 2
lea esp, [esp]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebp + eax - 0x188], 1
sub edx, 1
jne 0x41ca80
lea eax, [esi - 1]
cmp eax, 0xffffffff
jb 0x41ca9e
or eax, 0xffffffff
lea esi, [eax + edi]
movzx eax, byte [esi]
mov al, byte [ebp + eax - 0x188]
test al, al
jne 0x41cac4
nop
cmp esi, edi
je 0x41cac8
movzx eax, byte [esi - 1]
dec esi
mov al, byte [ebp + eax - 0x188]
test al, al
je 0x41cab0
sub esi, edi
jmp 0x41cacb
or esi, 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407550
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.004045e0
mov dword [ebp - 0x48], 0
inc esi
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 2
cmp ecx, esi
jb 0x41cb02
mov ecx, esi
cmp dword [eax + 0x14], 0x10
jb 0x41cb0a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407a30
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041c2b0
add esp, 0xc
lea ecx, [ebp - 0x40]
push eax
call fcn.0041c4e0
lea ecx, [ebp - 0x70]
call fcn.00407550
lea ecx, [ebp - 0x58]
call fcn.00407550
lea ecx, [ebp - 0x88]
call fcn.00407550
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00407550
mov esi, dword [ebp - 0x18c]
lea eax, [ebp - 0x40]
push eax
call fcn.0041ccb0
add esp, 4
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
jb 0x41cb7a
mov edx, dword [ebp - 0x40]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41cb91
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407a30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
jb 0x41cbb4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cbcc
shr ebx, 4
not bl
and bl, 1
jmp 0x41cbd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00407550
test bl, bl
jne 0x41cc2b
mov eax, dword [0x4b2000]
cmp eax, 0x4b2000
je 0x41cc27
test byte [eax + 0x1c], 4
je 0x41cc27
cmp byte [eax + 0x19], 5
jb 0x41cc27
cmp dword [esi + 0x14], 0x10
jb 0x41cc04
mov esi, dword [esi]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
jb 0x41cc10
mov ecx, dword [ebp - 0x40]
push esi
push ecx
push 0x4980e0
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041d1b0
add esp, 0x18
xor bl, bl
jmp 0x41cc4c
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x41cc4a
cmp dword [ebp - 0x2c], 0x10
jb 0x41cc41
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
push eax
call fcn.00407a30
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.00407550
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442022
mov esp, ebp
pop ebp
ret