Function at 0x10047277
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007149f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xfc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1004774e
lea eax, [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x88], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x1004771d
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0xe4]
call fcn.100505ca
and dword [ebp - 4], 0
push 0
push 0x4738
push dword [ebp - 0x3c]
lea eax, [ebp - 0xe4]
push eax
push 0xc84
push 1
push 0
push 0x52ae
push 0x10ad
push 0x305b
call fcn.1004acf0
add esp, 0x28
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
jae 0x100476de
push 1
push 1
push 0x3870
call fcn.10047019
add esp, 0xc
push 3
lea ecx, [ebp - 0xb4]
call fcn.100214ae
mov byte [ebp - 4], 1
mov dword [ebp - 0x64], 0x1e1e87df
mov dword [ebp - 0x90], 0
push 0x5478
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
call fcn.1004f860
add esp, 0x10
push 0x5065
lea eax, [ebp - 0x64]
push eax
push 0
push 0x5e31
lea eax, [ebp - 0x90]
push eax
call fcn.10047c4d
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb4]
call fcn.10021530
lea eax, [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x18], 0xf43b7c7c
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0x30], 0
jmp 0x100473ef
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x10047405
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xf4], 0xffffffff
jmp 0x100473e8
mov dword [ebp - 0x18], 0
jmp 0x10047415
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1004742b
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xf4], 0xfffffffb
jmp 0x1004740e
and dword [ebp - 0x2c], 0
jmp 0x1004743f
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 2
jae 0x1004747f
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
xor edx, edx
div dword [0x106183dc]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
movzx edx, byte [eax + edx]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
movzx ecx, byte [ecx + eax]
call fcn.1004406d
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], al
jmp 0x10047431
mov dword [ebp - 0x48], 0x701f
mov dword [ebp - 0x68], 0x100090f0
cmp dword [ebp - 0x48], 0x70f6
jle 0x10047515
push 0
push 0x2106
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
and dword [ebp - 0x20], 0
jmp 0x100474b4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7e6c
jge 0x10047515
and dword [ebp - 0x34], 0
jmp 0x100474ca
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x841
jge 0x10047513
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x34]
cdq
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
push dword [ebp - 0x70]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x10c]
call fcn.1000abc0
pop ecx
pop ecx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
call fcn.10021086
push eax
call fcn.1005a7f1
pop ecx
lea ecx, [ebp - 0x10c]
call fcn.10021026
jmp 0x100474c3
jmp 0x100474ad
mov dword [ebp - 0x24], 0xd313dd33
push 2
lea ecx, [ebp - 0xa4]
call fcn.100214ae
mov byte [ebp - 4], 2
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xcc], 0xfffffff6
push 1
lea ecx, [ebp - 0xc4]
call fcn.100214ae
mov byte [ebp - 4], 3
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0x70e3
push 0x4fa8
push 0x71c7
push 0x7140
push 1
push 0
call fcn.10046389
add esp, 0x20
push 0x4fd5
push 0x1e1
push 0
push 0x4331
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.1004ffaa
add esp, 0x18
mov dword [ebp - 0x24], 0
jmp 0x100475b7
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffea
jge 0x1004765b
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0xb8], 0x8a94b2ab
mov dword [ebp - 0x84], 0x415fb57a
mov dword [ebp - 0x28], 0
jmp 0x100475ec
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x10047602
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xe8], 0xffffffff
jmp 0x100475e5
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x64da
lea eax, [ebp - 0x8c]
push eax
push 0
call fcn.10048390
add esp, 0x14
push 0
lea eax, [ebp - 0x84]
push eax
push 0x6638
push 0x7864
push 0x2218
push 1
push 1
push 0x19cc
push 0xe77
push 0x61ed
call fcn.1004acf0
add esp, 0x28
jmp 0x100475b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.10021530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.10021530
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0x6cca
jge 0x1004768f
push dword [ebp - 0x68]
call fcn.1005a7f1
pop ecx
jmp 0x100476ab
and dword [ebp - 4], 0
jmp 0x100476b5
push 0x1864
lea eax, [ebp - 0xe4]
push eax
push 0
push 0x5381
lea eax, [ebp - 0x38]
push eax
push 0x798c
call fcn.1004d858
add esp, 0x18
jmp 0x1004733c
push 0x6fde
push 0
call fcn.10049f38
pop ecx
pop ecx
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.1005063a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.10021405
jmp 0x1004777d
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x11]
push eax
push 0x6523
push 0xfda
push 0
push 0
push 0x2a9d
push 1
push 0x7c8b
push 0x6589
call fcn.1004ffd2
add esp, 0x24
jmp 0x1004777d
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x60], eax
push dword [ebp - 0x50]
push 0x2752
push 0
push 0x196b
push dword [ebp - 0x58]
push dword [ebp - 0x60]
call fcn.10047929
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret