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

Disassembly:
push 0x94
mov eax, 0x4619ec
call fcn.0044621d
mov dword [ebp - 0x10], ecx
xor edx, edx
mov ebx, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 7
lea edi, [ebp - 0x7c]
xor eax, eax
mov dword [ecx], edx
stosd dword es:[edi], eax
push 9
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00434fb3
lea eax, [edi + 0x88]
push ebx
mov ecx, eax
mov dword [ebp - 0x60], eax
call fcn.0041e62f
call fcn.0041b6b9
mov esi, eax
test esi, esi
jns 0x41c52b
mov ecx, esi
call fcn.0041b100
jmp 0x41ca59
mov ecx, dword [0x46854c]
mov edx, 0x408a08
call fcn.004326db
mov ebx, eax
push ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c55f
mov eax, 0x80070057
mov ecx, eax
mov esi, eax
call fcn.0041b100
jmp 0x41ca5d
lea eax, [ebp - 0xa0]
mov edx, ebx
push eax
mov ecx, edi
call fcn.00434d30
mov esi, eax
test esi, esi
js 0x41c51f
mov esi, dword [ebp - 0xa0]
test esi, esi
js 0x41c51f
mov ecx, edi
call fcn.0041b8a6
mov esi, eax
test esi, esi
js 0x41c51f
lea eax, [ebp - 0x7c]
push eax
push 0x408d50
push edi
call fcn.00435205
mov esi, eax
add esp, 0xc
test esi, esi
js 0x41c51f
lea eax, [ebp - 0x44]
push eax
push 0x408d7c
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00435340
mov esi, eax
add esp, 0x10
test esi, esi
js 0x41c51f
lea ecx, [ebp - 0x7c]
call fcn.00435245
xor eax, eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x44], eax
jbe 0x41ca56
and dword [ebp - 0x1c], 0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 0
je 0x41c60f
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x408d88
push edi
call fcn.00435031
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41cbf3
cmp dword [ebp - 0x24], 0
je 0x41ca29
cmp dword [ebp - 0x30], 0
je 0x41c657
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x30], 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push eax
push 0
push 0x408dd8
push edi
call fcn.00435031
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41cbf3
cmp dword [ebp - 0x18], 0
je 0x41c694
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x18], 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0
push 0x408e30
push edi
call fcn.00435031
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41cbf3
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00420053
neg eax
pop ecx
sbb eax, eax
inc eax
je 0x41c73b
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], esi
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + 0x2c]
call fcn.0041e558
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
cmp esi, dword [edi + 0x34]
jne 0x41c704
mov dword [ebp - 0x68], eax
lea ecx, [edi + 4]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0041e558
mov esi, dword [ebp - 0x54]
cmp esi, dword [edi + 0xc]
je 0x41c73b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41c71f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov dword [ebp - 0x18], eax
test eax, eax
mov esi, dword [esi + 0xc]
je 0x41c738
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], 0
je 0x41c757
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x14], 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
push 0x408e98
push edi
call fcn.00435031
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41cbf3
mov esi, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00420053
neg eax
pop ecx
sbb eax, eax
inc eax
je 0x41c7fe
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 0x2c]
call fcn.0041e558
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
cmp esi, dword [edi + 0x34]
jne 0x41c7c7
mov dword [ebp - 0x50], eax
lea ecx, [edi + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041e558
mov esi, dword [ebp - 0x58]
cmp esi, dword [edi + 0xc]
je 0x41c7fe
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41c7e2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov dword [ebp - 0x14], eax
test eax, eax
mov esi, dword [esi + 0xc]
je 0x41c7fb
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x41c825
mov ecx, eax
call fcn.0041af7c
mov edi, eax
jmp 0x41c827
xor edi, edi
mov byte [ebp - 4], 8
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x30], 0
push edx
push ecx
push eax
mov ecx, edi
call fcn.0041afee
mov esi, eax
test esi, esi
js 0x41cbdb
xor esi, esi
cmp dword [ebp - 0x24], esi
jne 0x41c86e
mov eax, 0x80070057
mov ecx, eax
mov esi, eax
call fcn.0041b100
jmp 0x41c87a
push dword [ebp - 0x24]
lea ecx, [edi + 0xc]
call dword [0x46a524]
mov ecx, esi
call fcn.0041b049
test esi, esi
js 0x41cbdb
cmp dword [ebp - 0x34], 0
je 0x41c8a5
push dword [ebp - 0x34]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x34], 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push eax
push 0
push 0x408ef0
push dword [ebp - 0x10]
call fcn.00435031
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41cbdb
mov eax, dword [ebp - 0x34]
xor esi, esi
and dword [ebp - 0x34], 0
test eax, eax
jne 0x41c8e5
mov eax, 0x80070057
mov ecx, eax
mov esi, eax
call fcn.0041b100
jmp 0x41c8ee
push eax
mov ecx, edi
call dword [0x46a524]
mov ecx, esi
call fcn.0041b049
test esi, esi
js 0x41cbdb
push dword [ebp - 0x20]
xor ecx, ecx
lea eax, [ebp - 0x40]
push eax
push ecx
push ecx
push 0x408f40
push dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
call fcn.00435057
mov esi, eax
add esp, 0x18
test esi, esi
js 0x41cbdb
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [edi + 0x1c], eax
call fcn.0041b049
cmp dword [ebp - 0x2c], 0
je 0x41c94e
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x2c], 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x408f88
push dword [ebp - 0x10]
call fcn.00435031
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41ca3f
mov eax, dword [ebp - 0x2c]
xor esi, esi
and dword [ebp - 0x2c], 0
test eax, eax
jne 0x41c98e
mov eax, 0x80070057
mov ecx, eax
mov esi, eax
call fcn.0041b100
jmp 0x41c998
push eax
lea ecx, [edi + 8]
call dword [0x46a524]
mov ecx, esi
call fcn.0041b049
test esi, esi
js 0x41ca3f
cmp dword [ebp - 0x28], 0
je 0x41c9c3
push dword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x28], 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push 0
push 0x408fd0
push dword [ebp - 0x10]
call fcn.00435031
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41ca3f
mov eax, dword [ebp - 0x28]
xor esi, esi
and dword [ebp - 0x28], 0
test eax, eax
jne 0x41c9ff
mov eax, 0x80070057
mov ecx, eax
mov esi, eax
call fcn.0041b100
jmp 0x41ca09
push eax
lea ecx, [edi + 4]
call dword [0x46a524]
mov ecx, esi
call fcn.0041b049
test esi, esi
js 0x41ca3f
mov eax, dword [ebp - 0x60]
mov ecx, eax
and dword [ebp - 0x1c], 0
push edi
push dword [eax + 4]
call fcn.0041e711
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
inc eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x44]
jb 0x41c5e8
jmp 0x41ca59
mov ecx, esi
call fcn.0041b100
mov byte [ebp - 4], 7
push ecx
mov ecx, edi
call fcn.0041b569
and dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x10]
test esi, esi
jns 0x41caa4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push 0x409018
push 0x408a88
push 0x1ad
push 0
push 0x406890
push 0xa4000
push esi
push 0x409080
push 0x2000000
call fcn.00420037
add esp, 0xc
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov ecx, edi
call fcn.00434fb3
lea eax, [ebp - 0xa0]
test eax, eax
je 0x41cad0
lea ecx, [ebp - 0x9c]
call fcn.00435793
push 0x24
pop ecx
lea eax, [ebp - 0xa0]
mov byte [eax], 0
inc eax
dec ecx
jne 0x41cac9
mov ecx, esi
call fcn.0041b049
mov byte [ebp - 4], 6
cmp dword [ebp - 0x30], 0
je 0x41caf7
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x30], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x28], 0
je 0x41cb17
push dword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], 0
je 0x41cb37
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
je 0x41cb57
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x41cb77
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x41cb97
push dword [ebp - 0x34]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x41cbb7
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x18], 0
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x41cbd3
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 0x38], 0
mov eax, esi
call fcn.004461f0
ret
mov ecx, esi
call fcn.0041b100
mov byte [ebp - 4], 7
test edi, edi
je 0x41ca56
jmp 0x41ca4a
mov ecx, esi
call fcn.0041b100
mov byte [ebp - 4], 7
jmp 0x41ca59