Function at 0x10042174
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x10042219
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x100421c9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x100421c7
push 0
call dword [sym.imp.USER32.dll_RegisterClassA]
jmp 0x10042214
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x100421f7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 3
jge 0x10042214
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x4c]
call fcn.10012743
mov dword [eax], 1
jmp 0x100421ec
jmp 0x10042364
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x10042347
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x24], eax
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10012743
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x100422e2
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10012743
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ecx]
mov ecx, dword [ebp - 8]
imul eax, dword [ecx]
cmp eax, 1
jae 0x100422c5
mov dword [ebp - 0x14], 1
jmp 0x100422c9
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x100422e2
mov dword [ebp - 0x18], 1
jmp 0x100422e6
and dword [ebp - 0x18], 0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10012743
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10012743
cmp esi, dword [eax]
jg 0x1004231b
mov dword [ebp - 0x20], 1
jmp 0x1004231f
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x974edf0e
ja 0x10042339
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x10042339
mov dword [ebp - 0x28], 1
jmp 0x1004233d
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
jmp 0x10042364
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10042364
push 0
push 0x214b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop esi
mov esp, ebp
pop ebp
ret