Function at 0x10045637
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x10045802
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x1004568a
push 0
push 0x1f1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x100457fd
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x100456e9
mov dword [ebp - 0x30], 1
jmp 0x100456ed
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
sub edx, dword [ecx]
add eax, edx
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
jge 0x1004570c
mov dword [ebp - 0x10], 1
jmp 0x10045710
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jl 0x1004572e
mov dword [ebp - 0x38], 1
jmp 0x10045732
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0xffff
je 0x10045740
or eax, 0xffffffff
jne 0x1004574e
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1004574e
and dword [ebp - 0x20], 0
jmp 0x10045755
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0x3c57643
jle 0x10045767
mov dword [ebp - 0x6c], 1
jmp 0x1004576b
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
or eax, 0xffffffff
cmp eax, 0xa6d0811
jl 0x10045789
mov dword [ebp - 0x14], 1
jmp 0x1004578d
and dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x14], 0xb0ca
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
je 0x100457a4
mov dword [ebp - 0x28], 1
jmp 0x100457a8
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 9
jg 0x100457b7
mov dword [ebp - 0x18], 1
jmp 0x100457bb
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x100457d6
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x100457d6
mov dword [ebp - 0x1c], 1
jmp 0x100457da
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 5
ja 0x100457e9
mov dword [ebp - 0x24], 1
jmp 0x100457ed
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
add eax, 0x20796559
mov ecx, dword [ebp - 0x94]
mov dword [ecx], eax
jmp 0x100458e2
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1004588b
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], eax
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.1000e623
mov esi, eax
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.1000e623
mov ecx, dword [esi]
cmp ecx, dword [eax]
jle 0x10045867
mov dword [ebp - 0x34], 1
jmp 0x1004586b
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0x9af3922c
jne 0x1004587d
mov dword [ebp - 0x3c], 1
jmp 0x10045881
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x100458e2
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100458c2
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jge 0x100458e2
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x90]
call fcn.1000e623
mov dword [eax], 0x1d26
jmp 0x100458b7
pop esi
mov esp, ebp
pop ebp
ret