Function at 0x418039
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4181eb
lea eax, [ebp + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc4], eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xb4]
movzx eax, byte [eax]
test eax, eax
je 0x418129
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax]
test eax, eax
je 0x41811c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x41811a
push 1
push 0x4478
push 0x5231
push 0x455b
push 1
push 0x2045
push 1
push 0x769
push 0x4e60
push 0x63de
push 0
push 0x2bfa
push 0x5b2f
push 0x3d1e
push 1
push 0x127e
push 0x2bbd
push 0
call fcn.004160c9
add esp, 0x48
jmp 0x418124
push 0
call dword [sym.imp.USER32.dll_CharUpperW]
jmp 0x4181e6
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x4181a4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x418182
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 4
jge 0x4181a2
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0xc8]
call fcn.004313dc
mov dword [eax], 0xb3198a8f
jmp 0x418177
jmp 0x4181e6
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4181e6
push 0x611d
push 0x5417
push 0x1c45
push 0x3e6f
push 0
push 0x332b
push 0
push 0x3eef
push 0x305e
push 1
push 0x4248
call fcn.0041b023
add esp, 0x2c
jmp 0x418593
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x41825c
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x8c], eax
push 0x4feb
push 0x597c
push 0x388
push dword [ebp - 0x8c]
push 1
push 0x4cc6
push 0x66ac
call fcn.004131e9
add esp, 0x1c
jmp 0x418593
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x418290
push 0xeaf
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x418593
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xffffffea
jmp 0x4182df
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 4
je 0x418593
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0x78ee3f2f
mov dword [ebp - 0xc], 0xb
jmp 0x418309
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x19
jl 0x41858e
mov dword [ebp - 4], 1
push 1
lea ecx, [ebp - 0xc0]
call fcn.004312ee
push 3
lea ecx, [ebp - 0x40]
call fcn.004312ee
mov dword [ebp - 8], 0
jmp 0x418341
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x41835d
push dword [ebp - 8]
lea ecx, [ebp - 0xc0]
call fcn.004313dc
mov dword [eax], 0xa8d6
jmp 0x41833a
mov dword [ebp - 8], 0
jmp 0x41836d
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x418386
push dword [ebp - 8]
lea ecx, [ebp - 0x40]
call fcn.004313dc
mov dword [eax], 0xb8a4
jmp 0x418366
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
cmp dword [eax], ecx
je 0x418547
mov dword [ebp - 0x30], 0xfffffff7
mov dword [ebp - 0x28], 0x6aa1c33
cmp dword [ebp - 4], 0
je 0x4183b9
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x4183b9
mov dword [ebp - 0x34], 1
jmp 0x4183bd
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jle 0x4183d7
mov dword [ebp - 0xa0], 1
jmp 0x4183de
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xc]
dec eax
imul eax, dword [ebp - 0x20]
imul eax, eax, 0xfffe
sub eax, dword [ebp - 0x20]
jne 0x418403
mov dword [ebp - 0x2c], 1
jmp 0x418407
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
je 0x418418
mov dword [ebp - 0x24], 1
jmp 0x41841c
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
xor ecx, ecx
sub ecx, eax
cmp ecx, 0xbdb88dcf
jb 0x41852a
push 2
lea ecx, [ebp - 0xd8]
call fcn.004312ee
lea eax, [ebp - 0xe0]
push eax
push 0x37d0
push 0x8dc
push 0x7e5a
lea eax, [ebp - 0xd8]
push eax
push 0x5cf8
push 0
push 0x265c
push 0x649d
push 0x7948
push 0
push 0x7dc7
call fcn.00418597
add esp, 0x30
lea eax, [ebp - 0xd8]
push eax
push 0x4e24
push 0x7825
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push 0x569b
push 0x1f33
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xa8]
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0x37b4
push 0x49a1
push 0
push 0x4942
push 0x34f3
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00409a87
add esp, 0x5c
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x41851d
lea ecx, [ebp - 0xd8]
call fcn.004313c0
lea ecx, [ebp - 0x40]
call fcn.004313c0
lea ecx, [ebp - 0xc0]
call fcn.004313c0
jmp 0x418302
lea ecx, [ebp - 0xd8]
call fcn.004313c0
jmp 0x418545
cmp dword [ebp - 0xc], 0
je 0x418545
lea ecx, [ebp - 0x40]
call fcn.004313c0
lea ecx, [ebp - 0xc0]
call fcn.004313c0
jmp 0x41858e
jmp 0x418576
mov dword [ebp - 4], 0
jmp 0x418557
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jge 0x418576
push 0
push 0x40dd
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00413536
add esp, 0x10
jmp 0x418550
lea ecx, [ebp - 0x40]
call fcn.004313c0
lea ecx, [ebp - 0xc0]
call fcn.004313c0
jmp 0x418302
jmp 0x4182d4
mov esp, ebp
pop ebp
ret