Function at 0x4017b0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x428370
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0x25c]
lea eax, [ebp + 0x48]
push 0x208
push 0
push eax
call fcn.00418080
add esp, 0xc
lea eax, [ebp + 0x48]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xb
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
lea ecx, [ebp + 0x18]
push str.apphelp.dll
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.00401c30
mov dword [ebp - 4], 0
xor eax, eax
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
lea edx, [ecx + 2]
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401875
sub ecx, edx
lea eax, [ebp + 0x48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.00401c30
mov byte [ebp - 4], 1
lea eax, [ebp + 0x18]
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp]
call fcn.00402000
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x44]
cmp edx, 8
jb 0x4018e5
mov ecx, dword [ebp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4018db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a4b
push edx
push ecx
call fcn.004168f5
add esp, 8
xor eax, eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x401937
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40192d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a50
push edx
push ecx
call fcn.004168f5
add esp, 8
xor eax, eax
mov dword [ebp + 0x28], 0
cmp dword [ebp + 0x14], 8
mov word [ebp + 0x18], ax
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
mov dword [ebp + 0x2c], 7
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004168c5
add esp, 4
mov dword [ebp - 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 7
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00404270
test eax, eax
je 0x4019c5
push str.ImageExplorerMain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4019c5
push dword [ebp + 0x260]
push ebx
push edi
push esi
call eax
add esp, 0x10
mov esi, eax
jmp 0x4019c7
xor esi, esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.004037a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x401a10
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a55
push edx
push ecx
call fcn.004168f5
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov word [ebp], ax
mov eax, esi
mov dword [ebp + 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004168b4
lea esp, [ebp + 0x254]
pop ebp
ret 8
call fcn.0041a52f
call fcn.0041a52f
call fcn.0041a52f
int3