Function at 0x1003aebe
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x100bc368
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x428]
mov edi, dword [ebp + 0x41c]
mov esi, dword [ebp + 0x424]
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], ebx
test edi, edi
je 0x1003b515
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x1003af2d
mov eax, dword [ecx]
jmp 0x1003af2f
mov eax, ebx
test eax, eax
je 0x1003b515
push edi
call fcn.100391e8
pop ecx
test eax, eax
je 0x1003af49
push 9
jmp 0x1003b517
mov eax, dword [ebp + 0x420]
test eax, eax
je 0x1003af57
mov eax, dword [eax]
jmp 0x1003af59
mov eax, ebx
push eax
call fcn.100391e8
pop ecx
test eax, eax
jne 0x1003af42
test esi, esi
je 0x1003af73
push esi
call fcn.100391e8
pop ecx
test eax, eax
jne 0x1003af42
test esi, esi
mov eax, 0x100fc950
cmovne eax, esi
mov dword [ebp - 0x10], eax
call fcn.1003ad7a
test al, al
jne 0x1003af90
push 8
jmp 0x1003b517
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x1003afc3
test eax, eax
je 0x1003afc3
lea eax, [ebp + 0x208]
push eax
push ebx
push str.JNLP
lea eax, [ebp]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
jne 0x1003afcb
xor ebx, ebx
inc ebx
jmp 0x1003b518
push ebx
push 0x80
push 2
pop ebx
push ebx
xor esi, esi
lea eax, [ebp + 0x208]
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
je 0x1003b518
push str.docbase
lea ecx, [ebp - 0x14]
call fcn.1000d9ae
lea eax, [ebp + 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
push str._njnlphref
lea ecx, [ebp - 0x18]
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b043
call fcn.10001b26
push edi
lea ecx, [ebp - 0x18]
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b06c
call fcn.10001b26
push str._nembedded
lea ecx, [ebp - 0x18]
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b099
call fcn.10001b26
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b0c4
call fcn.10001b26
mov edi, dword [ebp - 0x38]
cmp byte [edi + 0x19], 0
je 0x1003b110
push ecx
push ecx
lea eax, [edi + 8]
mov ecx, esp
push eax
call fcn.100397e9
mov eax, dword [ebp - 0x14]
push str.vmarg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x1003b0ef
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10039c2f
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.10001795
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b110
call fcn.10001b26
cmp byte [edi + 0x1a], 0
je 0x1003b159
push ecx
push ecx
lea eax, [edi + 0x10]
mov ecx, esp
push eax
call fcn.100397e9
mov eax, dword [ebp - 0x14]
push str.apparg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x1003b138
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10039c2f
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.10001795
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b159
call fcn.10001b26
cmp byte [edi + 0x18], 0
je 0x1003b468
mov ecx, dword [edi]
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x1003b3cc
mov ebx, edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x64], edi
test edi, edi
je 0x1003b185
lock inc dword [edi + 8]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x68], esi
test esi, esi
je 0x1003b193
lock inc dword [esi + 8]
mov byte [ebp - 4], 7
test edi, edi
je 0x1003b19f
mov eax, dword [edi]
jmp 0x1003b1a1
xor eax, eax
push eax
call fcn.100391e8
pop ecx
test eax, eax
jne 0x1003b392
test esi, esi
je 0x1003b1b8
mov eax, dword [esi]
jmp 0x1003b1ba
xor eax, eax
push eax
call fcn.100391e8
pop ecx
test eax, eax
jne 0x1003b392
test edi, edi
je 0x1003b1d6
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
xor eax, eax
jmp 0x1003b1db
xor eax, eax
mov dword [ebp - 0x40], eax
test esi, esi
je 0x1003b1e1
mov eax, dword [esi]
push str._nname.
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
call fcn.10001727
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1003b212
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x24], eax
push 0x16
pop eax
mov word [ebp - 0x78], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3c]
call fcn.1001d68c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.1000187c
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1003b24d
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x100fc9c8
lea ecx, [ebp - 0x28]
call fcn.10001727
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1003b28d
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
call fcn.10001727
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1003b2bd
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0x100fc9cc
lea ecx, [ebp - 0x30]
call fcn.10001727
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1003b2eb
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x30], eax
push 0x16
pop eax
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x44]
call fcn.1001d68c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.1000187c
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1003b326
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x100fc9dc
lea ecx, [ebp - 0x34]
call fcn.10001727
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1003b366
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x34], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003b392
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.1002e58b
test esi, esi
je 0x1003b3a5
mov ecx, esi
call fcn.10001b26
mov byte [ebp - 4], 1
test edi, edi
je 0x1003b3b4
mov ecx, edi
call fcn.10001b26
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x1c], esi
cmp eax, dword [ebx]
jne 0x1003b177
mov edi, dword [ebp - 0x38]
push 2
pop ebx
push 0x100fc9e0
lea ecx, [ebp - 0x10]
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b3f9
call fcn.10001b26
push 0x100fc9e4
lea ecx, [ebp - 0x10]
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b422
call fcn.10001b26
push 0x16
pop eax
mov word [ebp - 0x60], ax
mov dword [ebp - 0x58], esi
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x10]
call fcn.1001d68c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b45a
call fcn.10001b26
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x100fca00
lea ecx, [ebp - 0x10]
call fcn.10001727
push 0x16
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b497
call fcn.10001b26
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003b4a2
mov edx, dword [esi]
jmp 0x1003b4a6
xor eax, eax
mov edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, ebx
cmp ax, word [ebp - 0x48]
jne 0x1003b4ae
sub ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0x50]
push eax
sar ecx, 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x1003b4dc
push 4
jmp 0x1003b4e9
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1003b4ec
push 5
pop ebx
jmp 0x1003b508
cmp dword [edi + 0x1c], 1
lea eax, [ebp + 0x208]
push eax
jne 0x1003b500
call fcn.1003b54c
jmp 0x1003b505
call fcn.1003b84a
mov ebx, eax
pop ecx
test esi, esi
je 0x1003b518
mov ecx, esi
call fcn.10001b26
jmp 0x1003b518
push 0xa
pop ebx
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x1003b527
call fcn.10001b26
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.100587af
add ebp, 0x414
leave
ret