Function at 0x10041b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101098b1
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10137920]
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 eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x100], ebx
call fcn.1004c9d0
mov dword [ebp - 4], ebx
mov edi, dword [0x1013ba54]
cmp edi, ebx
jne 0x10041bd8
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x10041bcb
mov esi, eax
call fcn.10011610
jmp 0x10041bcd
xor eax, eax
mov edi, eax
mov byte [ebp - 4], bl
mov dword [0x1013ba54], edi
lea ebx, [ebp - 0x2c]
call fcn.10011900
xor ebx, ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], ebx
jbe 0x10041c7a
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000a320
cmp dword [ebp - 0x1c], ebx
je 0x10041c7a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10041c12
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x10041c7a
mov esi, dword [ebp - 0xf8]
lea eax, [ebp - 0x2c]
mov edi, 7
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.10009ca0
cmp dword [ebp - 0x18], 8
jb 0x10041c55
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
jb 0x10042502
mov eax, dword [ebp - 0xd4]
push eax
jmp 0x100424fa
lea esi, [ebp - 0x9c]
call fcn.1001c350
mov byte [ebp - 4], 3
lea esi, [ebp - 0xb8]
mov dword [ebp - 0xfc], reloc.WS2_32.dll_accept
call fcn.1001c2c0
mov edi, eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.1004ca90
mov esi, eax
push 0x1012329c
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 5
call fcn.10010100
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 6
call fcn.10010440
add esp, 0xc
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 7
cmp dword [0x1013ba54], ebx
jne 0x10041d20
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x10041d15
mov esi, eax
call fcn.10011610
jmp 0x10041d17
xor eax, eax
mov byte [ebp - 4], 7
mov dword [0x1013ba54], eax
push ebx
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, dword [ebp - 0x104]
mov edx, edi
lea esi, [ebp - 0x80]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.10009ca0
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x10041d5b
mov edx, dword [ebp - 0x80]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0xdc], esi
jb 0x10041d83
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], dx
cmp dword [ebp - 0x50], esi
jb 0x10041da9
mov eax, dword [ebp - 0x64]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], esi
jb 0x10041dc6
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0xa4], esi
jb 0x10041ded
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x1004200b
lea esi, [ebp - 0xb8]
call fcn.1004caf0
mov esi, eax
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.10043500
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.1000bb10
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], 8
jb 0x10041e3e
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov edi, 8
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], edi
jb 0x10041e65
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xa4], edi
jb 0x10041e8c
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x10041ef3
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000a320
cmp dword [ebp - 0x1c], ebx
je 0x1004200b
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10041eba
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x1004200b
mov esi, dword [ebp - 0xf8]
lea eax, [ebp - 0x2c]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.10009ca0
jmp 0x1004249a
lea esi, [ebp - 0xb8]
call fcn.1004cac0
mov esi, eax
mov byte [ebp - 4], 0xc
push 1
xor eax, eax
push 0x1012329c
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
call fcn.1000abb0
push esi
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 0xd
call fcn.10010440
add esp, 0xc
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.1000bb10
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], edi
jb 0x10041f66
mov eax, dword [ebp - 0x48]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], edi
jb 0x10041f88
mov edx, dword [ebp - 0x64]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x6c], edi
jb 0x10041fa5
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xa4], edi
jb 0x10041fcc
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x1004200b
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000a320
cmp dword [ebp - 0x1c], ebx
je 0x1004200b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10041ff7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
jne 0x10042442
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0xfc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x10042042
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x10042065
cmp dword [ebp - 0xfc], ebx
je 0x10042065
lea esi, [ebp - 0xb8]
call fcn.1001c380
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x100], 2
jmp 0x1004207e
lea esi, [ebp - 0x48]
call fcn.1001c350
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x100], 4
push eax
lea ecx, [ebp - 0x9c]
call fcn.10009ca0
test byte [ebp - 0x100], 4
je 0x100420bc
and dword [ebp - 0x100], 0xfffffffb
cmp dword [ebp - 0x34], 8
jb 0x100420ac
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 3
test byte [ebp - 0x100], 2
je 0x100420e4
cmp dword [ebp - 0xa4], 8
jb 0x100420e4
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
lea esi, [ebp - 0xb8]
mov dword [ebp - 0x104], reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001c2c0
mov edi, eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 0x11
call fcn.1004ca90
mov esi, eax
push 0x1012329c
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xf0]
push edx
mov byte [ebp - 4], 0x12
call fcn.10010100
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x13
call fcn.10010440
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 0x14
cmp dword [0x1013ba54], ebx
jne 0x1004217b
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 0x15
cmp eax, ebx
je 0x10042170
mov esi, eax
call fcn.10011610
jmp 0x10042172
xor eax, eax
mov byte [ebp - 4], 0x14
mov dword [0x1013ba54], eax
push ebx
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0xfc]
mov edx, edi
lea esi, [ebp - 0x48]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.10009ca0
cmp dword [ebp - 0x34], 8
jb 0x100421b2
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov esi, 8
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], esi
jb 0x100421d9
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xdc], esi
jb 0x100421fc
mov eax, dword [ebp - 0xf0]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], cx
cmp dword [ebp - 0x6c], esi
jb 0x10042222
mov edx, dword [ebp - 0x80]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0xa4], esi
jb 0x10042249
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x10042476
lea esi, [ebp - 0xb8]
call fcn.1004caf0
mov esi, eax
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 0x17
call fcn.10043500
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x18
call fcn.1000bb10
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], 8
jb 0x1004229a
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov edi, 8
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], edi
jb 0x100422c1
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xa4], edi
jb 0x100422e8
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x1004232f
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000a320
cmp dword [ebp - 0x1c], ebx
je 0x10042478
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10042316
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x10042478
jmp 0x10041ece
lea esi, [ebp - 0xb8]
call fcn.1004cac0
mov esi, eax
mov byte [ebp - 4], 0x19
push 1
xor eax, eax
push 0x1012329c
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
call fcn.1000abb0
push esi
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 0x1a
call fcn.10010440
add esp, 0xc
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1b
call fcn.1000bb10
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], edi
jb 0x100423a2
mov eax, dword [ebp - 0x48]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], edi
jb 0x100423c4
mov edx, dword [ebp - 0x64]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x6c], edi
jb 0x100423e1
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xa4], edi
jb 0x10042408
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x10042478
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000a320
cmp dword [ebp - 0x1c], ebx
je 0x10042478
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10042432
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x10042478
mov esi, dword [ebp - 0xf8]
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.10009850
lea ecx, [ebp - 0x9c]
call fcn.1000b180
lea ecx, [ebp - 0x2c]
call fcn.1000b180
lea ecx, [ebp - 0xd4]
call fcn.1000b180
jmp 0x10042502
mov edi, esi
mov esi, dword [ebp - 0xf8]
push ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x101134e8
mov ecx, esi
mov word [esi], ax
call fcn.1000abb0
cmp dword [ebp - 0x88], edi
jb 0x100424b1
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0x18], edi
jb 0x100424db
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0xc0], edi
jb 0x10042502
mov edx, dword [ebp - 0xd4]
push edx
call fcn.10065453
add esp, 4
mov eax, esi
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.1006656c
mov esp, ebp
pop ebp
ret