Function at 0x436386
Capabilities:
Get common file path

Disassembly:
push 0x31c
mov eax, 0x489090
call fcn.0045e463
mov ebx, ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x280]
call fcn.004368dc
push eax
mov ecx, ebx
call fcn.004312e0
lea ecx, [ebp - 0x280]
call fcn.00421a00
lea edx, [ebx + 0x30]
lea ecx, [ebx + 0x18]
call fcn.0042400b
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
call fcn.00434513
test al, al
je 0x4363ec
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [0x4b8c1c]
xor eax, eax
lea ecx, [ebp - 0x2e0]
push 7
pop esi
mov word [ebp - 0x2e0], ax
xor edi, edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2d0], edi
push eax
mov dword [ebp - 0x2cc], esi
call fcn.004211c2
lea edx, [ebp - 0x2e0]
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x280]
call fcn.004267a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e0]
call fcn.00421630
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebx + 0x48]
call fcn.004312e0
lea ecx, [ebp - 0x280]
call fcn.00421a00
lea ecx, [ebp - 0x280]
call fcn.004369bd
push eax
lea ecx, [ebx + 0x60]
call fcn.004312e0
lea ecx, [ebp - 0x280]
call fcn.00421a00
push 0x20a
lea eax, [ebp - 0x25c]
push edi
push eax
call fcn.00460010
add esp, 0xc
lea eax, [ebp - 0x25c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx eax, word [ebp - 0x25a]
lea ecx, [ebp - 0x2e0]
cmp word [ebp - 0x25c], 0x22
movzx edx, word [ebp - 0x25c]
cmove edx, eax
mov dword [ebp - 0x2d0], edi
xor eax, eax
mov word [ebp - 0x1c], dx
mov word [ebp - 0x2e0], ax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x2cc], esi
call fcn.004211c2
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 4], 1
call fcn.00436a67
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e0]
mov esi, eax
call fcn.00421630
test esi, esi
jns 0x436569
mov ecx, dword [ebp - 0x1c]
call fcn.00437337
mov esi, eax
test esi, esi
jns 0x436569
xor eax, eax
mov dword [ebp - 0x2d0], edi
mov word [ebp - 0x2e0], ax
lea ecx, [ebp - 0x2e0]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2cc], 7
push eax
call fcn.004211c2
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 4], 2
call fcn.00436c1a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e0]
mov esi, eax
call fcn.00421630
test esi, esi
js 0x4368d4
mov edx, esi
lea ecx, [ebp - 0x2c8]
call fcn.00437e29
push 3
pop edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x2b8], 0
jne 0x4365a9
mov edx, esi
lea ecx, [ebp - 0x280]
call fcn.0043794d
push eax
lea ecx, [ebp - 0x2c8]
call fcn.004312e0
lea ecx, [ebp - 0x280]
call fcn.00421a00
mov edx, esi
lea ecx, [ebp - 0x298]
call fcn.00438669
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x288]
test edx, edx
jne 0x4365ee
mov edx, esi
lea ecx, [ebp - 0x280]
call fcn.00438289
push eax
lea ecx, [ebp - 0x298]
call fcn.004312e0
lea ecx, [ebp - 0x280]
call fcn.00421a00
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
xor ecx, ecx
mov eax, dword [ebp - 0x2b8]
and dword [ebp - 0x2d0], 0
add eax, edx
mov dword [ebp - 0x2cc], 0xf
setb cl
mov byte [ebp - 0x2e0], 0
neg ecx
mov dword [ebp - 0x18], edi
or ecx, eax
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.00418d65
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00421793
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00421793
lea edx, [ebp - 0x2e0]
lea ecx, [ebp - 0x280]
call fcn.00426942
lea edx, [ebp - 0x280]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2b0]
call fcn.004267a6
lea ecx, [ebp - 0x280]
call fcn.00421630
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 8
call fcn.00421a00
mov edx, dword [ebp - 0x288]
test edx, edx
je 0x4366c3
lea ecx, [ebx + 0x90]
lea eax, [ebp - 0x298]
cmp ecx, eax
je 0x4366c3
cmp dword [ebp - 0x284], 0x10
push edx
cmovae eax, dword [ebp - 0x298]
push eax
call fcn.0042194a
mov edx, dword [ebp - 0x288]
cmp dword [ebp - 0x2b8], 0
jne 0x4366d4
test edx, edx
je 0x4368b3
xor eax, eax
lea edi, [ebp - 0x268]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x2a0]
mov ecx, eax
call fcn.0041a5e5
cmp dword [ebp - 0x29c], 0x10
lea eax, [ebp - 0x2b0]
push dword [ebp - 0x2a0]
cmovae eax, dword [ebp - 0x2b0]
push eax
push dword [ebp - 0x268]
call fcn.0045f510
xor ecx, ecx
lea edx, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x24], ecx
add esp, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x2d8]
push eax
call fcn.00426b85
pop ecx
pop ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00426da3
lea esi, [ebx + 0x78]
push eax
mov ecx, esi
call fcn.004312e0
lea ecx, [ebp - 0x280]
call fcn.00421a00
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov edi, 0x49d300
mov dword [ebp - 0x1c], ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
call fcn.0042180c
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2e0]
push 0x4a0f6c
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], 0xf
mov byte [ebp - 0x2e0], bl
call fcn.0042180c
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x2e0]
mov edx, esi
push eax
lea ecx, [ebp - 0x280]
call fcn.00426476
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004312e0
lea ecx, [ebp - 0x280]
call fcn.00421a00
lea ecx, [ebp - 0x2e0]
call fcn.00421a00
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00421a00
push edi
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], 0xf
mov byte [ebp - 0x310], bl
call fcn.0042180c
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2f8]
push 0x4a0e98
mov dword [ebp - 0x2e8], ebx
mov dword [ebp - 0x2e4], 0xf
mov byte [ebp - 0x2f8], bl
call fcn.0042180c
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x2f8]
mov edx, esi
push eax
lea ecx, [ebp - 0x328]
call fcn.00426476
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004312e0
lea ecx, [ebp - 0x328]
call fcn.00421a00
lea ecx, [ebp - 0x2f8]
call fcn.00421a00
lea ecx, [ebp - 0x310]
call fcn.00421a00
lea ecx, [ebp - 0x268]
call fcn.00419888
lea ecx, [ebp - 0x2b0]
call fcn.00421a00
lea ecx, [ebp - 0x298]
call fcn.00421a00
lea ecx, [ebp - 0x2c8]
call fcn.00421a00
mov al, 1
call fcn.0045e40d
ret