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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ced28
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4fbf60]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor esi, esi
cmp ecx, esi
je 0x41cd98
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x70], esi
xor eax, eax
mov word [esp + 0x44], ax
mov edi, 7
mov eax, ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], esi
lea ebx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x41cc90
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004028fc
push esi
sub esp, 0xc
mov byte [esp + 0x80], 1
mov esi, esp
mov dword [esp + 0x24], esp
call fcn.00421130
lea ecx, [esp + 0x54]
push ecx
lea ebx, [esp + 0x2c]
call fcn.00421180
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov byte [esp + 0x14], 0
mov eax, edx
cmp edx, ecx
je 0x41cd0e
cmp dword [eax + 0x10], 0
je 0x41ccf4
add eax, 0x1c
cmp eax, ecx
jne 0x41cce5
jmp 0x41cd0e
cmp ecx, eax
je 0x41cd43
mov edx, dword [esp + 0x14]
push edx
push ecx
call fcn.00421e00
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 8
cmp ecx, eax
je 0x41cd43
mov edx, dword [esp + 0x14]
push edx
push eax
push ecx
push ecx
call fcn.00414100
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
push esi
call fcn.004140c0
mov edx, dword [esp + 0x38]
mov ecx, esi
add esp, 0x20
mov dword [esp + 0x1c], ecx
cmp edx, ecx
jne 0x41cd9f
cmp dword [esp + 0x58], 8
jb 0x41cd63
mov eax, dword [esp + 0x44]
push eax
call fcn.0047f3b4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
xor eax, eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
test edx, edx
je 0x41cd98
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
push edx
call fcn.004140c0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0047f3b4
add esp, 0x14
xor al, al
jmp 0x41ce9d
mov esi, edx
xor edx, edx
mov byte [esp + 0x13], 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 0
mov word [esp + 0x28], dx
mov byte [esp + 0x70], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp esi, ecx
je 0x41ce20
cmp byte [esp + 0x13], 0
lea ecx, [esp + 0x28]
je 0x41cebb
push 0xffffffffffffffff
push 0
push esi
mov byte [esp + 0x1f], 0
call fcn.0040238a
cmp dword [esp + 0x3c], 8
jb 0x41cdfb
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x41cdff
xor bl, bl
jmp 0x41ce15
lea eax, [esp + 0x28]
push eax
call edi
cmp eax, 0xffffffff
je 0x41cf17
test al, 0x10
je 0x41cf17
mov bl, 1
mov ecx, dword [esp + 0x1c]
add esi, 0x1c
test bl, bl
jne 0x41cdc6
cmp dword [esp + 0x3c], 8
jb 0x41ce38
mov eax, dword [esp + 0x28]
push eax
call fcn.0047f3b4
mov ecx, dword [esp + 0x20]
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [esp + 0x58], 8
mov esi, 7
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
jb 0x41ce66
mov eax, dword [esp + 0x44]
push eax
call fcn.0047f3b4
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov word [esp + 0x44], dx
cmp eax, edi
je 0x41ce9b
mov edx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.004140c0
mov eax, dword [esp + 0x28]
push eax
call fcn.0047f3b4
add esp, 0x14
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
push 1
push 0x4ded64
call fcn.0040285b
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.00402cfc
mov ebx, 8
cmp dword [esp + 0x3c], ebx
jb 0x41cf1e
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41cefc
push eax
call edi
cmp eax, 0xffffffff
je 0x41cef8
test al, 0x10
jne 0x41ce13
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebx
jae 0x41cf06
lea eax, [esp + 0x28]
push eax
call fcn.00480696
add esp, 4
test eax, eax
je 0x41ce13
xor bl, bl
jmp 0x41ce15
lea eax, [esp + 0x28]
jmp 0x41cee8