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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc36f
mov eax, dword fs:[0]
push eax
mov eax, 0x10b4
call fcn.004aa1a0
mov eax, dword [0x4fad60]
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
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x41da47
xor eax, eax
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], ebx
mov word [ebp - 0x1048], ax
lea edi, [ebp - 0x109c]
mov dword [ebp - 4], ebx
call fcn.00413e30
mov edi, eax
lea esi, [ebp - 0x1048]
mov byte [ebp - 4], 1
call fcn.00409010
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1088], edi
jb 0x41d9e4
mov ecx, dword [ebp - 0x109c]
push ecx
call fcn.00490a16
add esp, 4
cmp dword [ebp - 0x1038], ebx
jne 0x41da0c
cmp dword [ebp - 0x1034], edi
jb 0x41df9c
mov edx, dword [ebp - 0x1048]
push edx
call fcn.00490a16
add esp, 4
jmp 0x41df9c
mov ecx, dword [ebp - 0x1048]
cmp dword [ebp - 0x1034], edi
jae 0x41da20
lea ecx, [ebp - 0x1048]
push 1
call fcn.0041fcc0
mov esi, eax
cmp dword [ebp - 0x1034], edi
jb 0x41da40
mov eax, dword [ebp - 0x1048]
push eax
call fcn.00490a16
add esp, 4
mov eax, esi
jmp 0x41df9e
cmp byte [ebp + 0xc], bl
je 0x41da5f
call fcn.00423840
test al, al
je 0x41da5f
mov eax, 1
jmp 0x41df9e
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x1038], ebx
mov word [ebp - 0x1048], cx
mov dword [ebp - 4], 2
xor edx, edx
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], dx
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push 0x800
mov byte [ebp - 4], 3
mov ecx, 0x400
lea edi, [ebp - 0x1010]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1010]
push eax
push 0x1c
lea ecx, [ebp - 0x109c]
push ecx
push fcn.0041d950
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1098]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea eax, [ebp - 0x1010]
mov word [ebp - 0x1064], dx
mov dword [ebp - 0x1050], esi
mov dword [ebp - 0x1054], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41db01
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x1064]
call fcn.00403e70
lea eax, [ebp - 0x1048]
push eax
mov ebx, esi
mov byte [ebp - 4], 4
call fcn.0044dbd0
mov ebx, 8
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1050], ebx
jb 0x41db57
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
push 0xc
mov eax, 0x4e25bc
lea esi, [ebp - 0x1064]
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], 0
mov word [ebp - 0x1064], dx
call fcn.00403e70
lea eax, [ebp - 0x1048]
push eax
mov edx, esi
lea ecx, [ebp - 0x1080]
mov byte [ebp - 4], 5
call fcn.0044e150
add esp, 4
mov edi, eax
lea esi, [ebp - 0x102c]
mov byte [ebp - 4], 6
call fcn.00409010
cmp dword [ebp - 0x106c], ebx
jb 0x41dbc9
mov ecx, dword [ebp - 0x1080]
push ecx
call fcn.00490a16
add esp, 4
xor esi, esi
xor edx, edx
mov edi, 7
mov byte [ebp - 4], 3
mov dword [ebp - 0x106c], edi
mov dword [ebp - 0x1070], esi
mov word [ebp - 0x1080], dx
cmp dword [ebp - 0x1050], ebx
jb 0x41dc00
mov eax, dword [ebp - 0x1064]
push eax
call fcn.00490a16
add esp, 4
mov eax, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], ebx
jae 0x41dc14
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41dcce
shr eax, 4
not eax
and eax, 1
je 0x41dcce
mov ecx, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], ebx
jae 0x41dc46
lea ecx, [ebp - 0x102c]
push 2
call fcn.0041fcc0
cmp eax, esi
jne 0x41dc9d
cmp dword [ebp - 0x1018], ebx
jb 0x41dc68
mov ecx, dword [ebp - 0x102c]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 0x1018], edi
mov dword [ebp - 0x101c], esi
mov word [ebp - 0x102c], dx
cmp dword [ebp - 0x1034], ebx
jb 0x41df9c
mov eax, dword [ebp - 0x1048]
push eax
call fcn.00490a16
add esp, 4
jmp 0x41df9c
call fcn.0041d7d0
cmp eax, esi
je 0x41df86
call fcn.0041d760
mov esi, eax
lea ecx, [ebp - 0x102c]
call fcn.00404690
lea ecx, [ebp - 0x1048]
call fcn.00404690
mov eax, esi
jmp 0x41df9e
lea ecx, [ebp - 0x1048]
push ecx
mov ebx, ecx
call fcn.0044dbd0
add esp, 4
mov dword [ebp - 0x1070], esi
xor edx, edx
push 0xc
mov eax, 0x4e25bc
lea esi, [ebp - 0x1080]
mov dword [ebp - 0x106c], edi
mov word [ebp - 0x1080], dx
call fcn.00403e70
mov eax, ebx
push eax
mov edx, esi
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 7
call fcn.0044e150
add esp, 4
mov ebx, 8
mov edi, eax
lea esi, [ebp - 0x102c]
mov byte [ebp - 4], bl
call fcn.00409010
cmp dword [ebp - 0x1088], ebx
jb 0x41dd49
mov ecx, dword [ebp - 0x109c]
push ecx
call fcn.00490a16
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov byte [ebp - 4], 3
mov dword [ebp - 0x1088], esi
mov dword [ebp - 0x108c], edi
mov word [ebp - 0x109c], dx
cmp dword [ebp - 0x106c], ebx
jb 0x41dd80
mov eax, dword [ebp - 0x1080]
push eax
call fcn.00490a16
add esp, 4
mov eax, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], ebx
jae 0x41dd94
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ddd9
shr eax, 4
not eax
and eax, 1
je 0x41ddd9
mov ecx, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], ebx
jae 0x41ddbe
lea ecx, [ebp - 0x102c]
push 2
call fcn.0041fcc0
cmp eax, edi
je 0x41df86
call fcn.0041d7d0
cmp eax, edi
jmp 0x41dca4
xor ecx, ecx
mov dword [ebp - 0x1050], esi
mov dword [ebp - 0x1054], edi
mov word [ebp - 0x1064], cx
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 9
call fcn.0044ee20
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x400
lea edi, [ebp - 0x1010]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1064]
cmp dword [ebp - 0x1050], ebx
jae 0x41de2a
lea eax, [ebp - 0x1064]
mov ecx, dword [ebp - 0x1054]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00498770
mov eax, dword [ebp - 0x1048]
add esp, 0xc
cmp dword [ebp - 0x1034], ebx
jae 0x41de58
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x1010]
push ecx
call fcn.004925c1
add esp, 8
test eax, eax
je 0x41df5c
mov eax, 0x4e25bc
lea ecx, [ebp - 0x1080]
call fcn.00403fb0
lea eax, [ebp - 0x1010]
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 0xa
call fcn.00403fb0
lea edx, [ebp - 0x109c]
push edx
lea edx, [ebp - 0x1080]
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 0xb
call fcn.0044e150
add esp, 4
mov edi, eax
lea esi, [ebp - 0x102c]
mov byte [ebp - 4], 0xc
call fcn.00409010
lea ecx, [ebp - 0x10b8]
call fcn.00404690
lea ecx, [ebp - 0x109c]
call fcn.00404690
lea ecx, [ebp - 0x1080]
mov byte [ebp - 4], 9
call fcn.00404690
mov eax, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], ebx
jae 0x41defa
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41df5c
shr eax, 4
not eax
and eax, 1
je 0x41df5c
mov ecx, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], ebx
jae 0x41df24
lea ecx, [ebp - 0x102c]
push 2
call fcn.0041fcc0
test eax, eax
jne 0x41df3c
lea ecx, [ebp - 0x1064]
call fcn.00404690
jmp 0x41df86
call fcn.0041d7d0
test eax, eax
je 0x41df2f
call fcn.0041d760
lea ecx, [ebp - 0x1064]
mov esi, eax
call fcn.00404690
jmp 0x41dcb1
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 3
call fcn.00404690
mov ecx, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], ebx
jae 0x41df7f
lea ecx, [ebp - 0x102c]
push 2
call fcn.0041fcc0
lea ecx, [ebp - 0x102c]
call fcn.00404690
lea ecx, [ebp - 0x1048]
call fcn.00404690
xor eax, eax
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.00490a21
mov esp, ebp
pop ebp
ret