Function at 0x10036f7f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1005c759
call fcn.1005b550
sub esp, 0x6c
cmp byte [ebp + 0x18], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x100373e5
cmp byte [ebp + 0xc], 0
je 0x10037342
xor ebx, ebx
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 0x6e9f
cmp dword [ebp - 0x20], 0x717d
jle 0x1003713f
push ebx
push 0x2483
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, ebx
mov edi, 0x10075c58
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 0x1cbe
cmp dword [ebp - 0x24], 0x597
jge 0x1003710a
lea eax, [ebp - 0x14]
push eax
push 0x10063a00
call fcn.100461eb
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x10037106
mov dword [ebp - 0x28], ebx
dec eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
push eax
push 0x10063a00
call fcn.100461eb
pop ecx
pop ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 0x44]
call fcn.1000f349
mov byte [ebp - 4], 1
mov edi, ebx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 0x44]
test eax, eax
jle 0x10037063
push esi
push 0x10063a00
call fcn.100461eb
mov eax, dword [ebp + 0x18]
inc edi
pop ecx
add esi, 4
pop ecx
cmp edi, eax
jl 0x10037048
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], ebx
push ecx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.10037509
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], 2
mov dword [eax + 4], 1
cmp dword [ebp + 0x18], 2
jle 0x100370b8
mov edi, eax
lea ecx, [esi + 8]
sub edi, esi
mov edx, eax
mov esi, dword [ebp - 0x24]
mov eax, dword [ecx]
cmp eax, dword [ecx - 4]
jge 0x100370a6
add edx, 4
mov eax, dword [edx]
inc eax
inc esi
mov dword [edi + ecx], eax
add ecx, 4
cmp esi, dword [ebp + 0x18]
jl 0x1003709c
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
push dword [eax - 4]
push str._ld_n
call fcn.1004677c
push dword [ebp - 0x38]
call fcn.10046949
add esp, 0xc
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], bl
test esi, esi
je 0x100370f3
push esi
call fcn.10046949
pop ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10037019
mov esi, dword [ebp - 0x1c]
mov edi, 0x10075c58
dec eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov eax, esi
shl eax, cl
mov ecx, edi
cdq
push edx
push eax
call fcn.1000ed7e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x4547
jl 0x10036fe7
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x78e3
jl 0x10036fe4
jmp 0x10037144
mov edi, 0x10075c58
push dword [ebp + 0x14]
lea ecx, [ebp - 0x5c]
call fcn.1000f018
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 0x6e24
jge 0x1003718b
mov edx, str.zigzxzbvi_qhu_azsngfcj_kgoived
mov ecx, edi
call fcn.1001381a
jmp 0x1003718b
mov dword [ebp - 4], ebx
mov eax, dword [0x100d9ff0]
test al, 1
jne 0x100371bb
or eax, 1
mov dword [0x100d9ff0], eax
push 0x14949
mov byte [ebp - 4], 4
call fcn.1000606e
mov byte [0x100d8c58], al
mov byte [ebp - 4], bl
mov eax, dword [0x100d9ff0]
pop ecx
test al, 2
jne 0x100371de
or eax, 2
mov dword [0x100d9ff0], eax
push 0xbc31
mov byte [ebp - 4], 5
call fcn.1000606e
pop ecx
mov byte [0x100d8c59], al
mov byte [ebp - 4], bl
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10037235
call fcn.10034f9c
push 0x34
pop ecx
xor edx, edx
div ecx
push 0x100d8c58
push 0x2f9d
push 0x3222
push 0x5f67
push 0x28da
push 1
push 0x100d8c59
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
push eax
push 1
lea eax, [ebp - 0x5c]
mov edx, 0x5436
push eax
push 0x201c
mov cl, 1
call fcn.10036f09
add esp, 0x2c
dec esi
jne 0x100371e5
mov dword [ebp - 0x24], 0x5040
cmp dword [ebp - 0x24], 0x5427
jle 0x10037292
mov esi, ebx
mov dword [ebp - 0x20], ebx
mov edi, esi
mov esi, 0x539f
mov eax, edi
lea ecx, [ebp - 0x74]
cdq
push edx
push eax
call fcn.10001af4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10037268
mov eax, dword [eax]
push eax
call fcn.1004677c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.1000f813
dec edi
dec esi
jne 0x10037251
mov esi, dword [ebp - 0x20]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x614e
jl 0x1003724a
mov edi, 0x10075c58
mov dword [ebp - 0x20], 0x6a6c
cmp dword [ebp - 0x20], 0x6d18
jle 0x100372e8
push ebx
push ebx
push 0x1e00
push 0x1742
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, ebx
mov dword [ebp + 0x18], ebx
mov ebx, esi
mov esi, 0x5917
mov eax, ebx
mov ecx, edi
cdq
push edx
push eax
call fcn.1000ed7e
dec ebx
dec esi
jne 0x100372c7
mov esi, dword [ebp + 0x18]
inc esi
mov dword [ebp + 0x18], esi
cmp esi, 0x352c
jl 0x100372c0
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
cmp ecx, eax
je 0x100372fb
push 0xffffffffffffffff
push ebx
push eax
call fcn.1000fbca
mov byte [ebp - 4], 6
cmp dword [ebp - 0x20], 0x66de
jge 0x10037332
mov edx, str.hiwfj_ite_shvffmt_pmth_izdo_ugddiwch_jnuz_kfdyf_euuhkyx_vhne_lobeqq_hnhwwpgfx
mov ecx, edi
call fcn.1001381a
jmp 0x10037332
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.1000fd05
jmp 0x100373ff
mov eax, dword [ecx]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x28]
mov eax, dword [edi]
mov eax, dword [ecx]
mov eax, dword [edi]
mov eax, dword [ecx]
mov dword [ecx], 1
mov eax, dword [ecx]
mov dword [edx], eax
mov ecx, dword [edi]
mov eax, dword [edx]
xor edx, edx
cmp eax, ecx
mov eax, dword [edi]
setne dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [edi]
setl bl
xor ecx, ecx
cmp ebx, eax
mov eax, dword [ebp + 8]
sete cl
mov dword [eax], ecx
imul edx, dword [eax], 0xe964
mov eax, dword [edi]
sub edx, 0x3ac
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [edi]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [edi]
setl dl
xor ecx, ecx
cmp eax, edx
mov edx, dword [edi]
mov eax, dword [esi]
sete cl
sub edx, ecx
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [esi], ecx
cmp dword [esi], 0x8a6ebbfa
mov eax, dword [edi]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp ecx, eax
mov eax, dword [edi]
setl dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [edi]
sete bl
xor ecx, ecx
cmp ebx, eax
mov eax, dword [ebp + 0x24]
setl cl
mov dword [eax], ecx
jmp 0x100373ff
mov eax, dword [ebp + 0x20]
cmp byte [eax], 0
je 0x100373ff
push 0x3f0f
mov edx, 0x59ae
xor cl, cl
call fcn.100351dc
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret