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

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x100cfa45
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10130aa4]
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 edi, dword [ebp + 0x41c]
mov esi, dword [ebp + 0x424]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
test edi, edi
je 0x1003b590
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x1003b590
cmp dword [ecx], ebx
je 0x1003b590
push edi
call fcn.10039080
pop ecx
test eax, eax
je 0x1003afb0
push 9
jmp 0x1003b592
mov eax, dword [ebp + 0x420]
test eax, eax
je 0x1003afbe
mov eax, dword [eax]
jmp 0x1003afc0
mov eax, ebx
push eax
call fcn.10039080
pop ecx
test eax, eax
jne 0x1003afa9
test esi, esi
je 0x1003afda
push esi
call fcn.10039080
pop ecx
test eax, eax
jne 0x1003afa9
test esi, esi
mov eax, 0x10110b14
cmovne eax, esi
mov dword [ebp - 0x10], eax
call fcn.1003adec
test al, al
jne 0x1003aff7
push 8
jmp 0x1003b592
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x1003b02c
test eax, eax
je 0x1003b02c
lea eax, [ebp + 0x208]
xor esi, esi
push eax
push esi
push str.JNLP
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1003b034
xor ebx, ebx
inc ebx
jmp 0x1003b593
push esi
push 0x80
push 2
pop ebx
push ebx
push esi
push esi
push 0x40000000
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x1003b593
push str.docbase
lea ecx, [ebp - 0x14]
call fcn.1000dcc0
lea eax, [ebp + 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
push str._njnlphref
lea ecx, [ebp - 0x18]
call fcn.10001719
lea eax, [ebp - 0x18]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b0aa
call fcn.10001b13
push edi
lea ecx, [ebp - 0x18]
call fcn.10001719
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b0d3
call fcn.10001b13
push str._nembedded
lea ecx, [ebp - 0x18]
call fcn.10001719
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b100
call fcn.10001b13
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.10001719
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b12b
call fcn.10001b13
mov edi, dword [ebp + 0x428]
cmp byte [edi + 0x19], 0
je 0x1003b181
push ecx
push ecx
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov eax, dword [edi + 8]
push eax
push dword [eax]
call fcn.10039652
mov eax, dword [ebp - 0x14]
push str.vmarg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x1003b160
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10039bb7
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.10001787
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b181
call fcn.10001b13
cmp byte [edi + 0x1a], 0
je 0x1003b1d1
push ecx
push ecx
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov eax, dword [edi + 0x10]
push eax
push dword [eax]
call fcn.10039652
mov eax, dword [ebp - 0x14]
push str.apparg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x1003b1b0
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10039bb7
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.10001787
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b1d1
call fcn.10001b13
cmp byte [edi + 0x18], 0
je 0x1003b4e3
mov ecx, dword [edi]
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x1003b447
mov ebx, edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x60], edi
test edi, edi
je 0x1003b1fd
lock inc dword [edi + 8]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x64], esi
test esi, esi
je 0x1003b20b
lock inc dword [esi + 8]
mov byte [ebp - 4], 7
test edi, edi
je 0x1003b217
mov eax, dword [edi]
jmp 0x1003b219
xor eax, eax
push eax
call fcn.10039080
pop ecx
test eax, eax
jne 0x1003b40a
test esi, esi
je 0x1003b230
mov eax, dword [esi]
jmp 0x1003b232
xor eax, eax
push eax
call fcn.10039080
pop ecx
test eax, eax
jne 0x1003b40a
test edi, edi
je 0x1003b24e
mov eax, dword [edi]
mov dword [ebp - 0x3c], eax
xor eax, eax
jmp 0x1003b253
xor eax, eax
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x1003b259
mov eax, dword [esi]
push str._nname.
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
call fcn.10001719
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1003b28a
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x24], eax
push 0x16
pop eax
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x38]
call fcn.1001d194
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.1000186b
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1003b2c5
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x10110b8c
lea ecx, [ebp - 0x28]
call fcn.10001719
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1003b305
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.10001719
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1003b335
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0x10110b90
lea ecx, [ebp - 0x30]
call fcn.10001719
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1003b363
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x30], eax
push 0x16
pop eax
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x40]
call fcn.1001d194
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.1000186b
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x1003b39e
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x10110ba0
lea ecx, [ebp - 0x34]
call fcn.10001719
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1003b3de
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x34], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.10001719
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003b40a
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.10039863
test esi, esi
je 0x1003b41d
mov ecx, esi
call fcn.10001b13
mov byte [ebp - 4], 1
test edi, edi
je 0x1003b42c
mov ecx, edi
call fcn.10001b13
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x1c], esi
cmp eax, dword [ebx]
jne 0x1003b1ef
mov edi, dword [ebp + 0x428]
push 2
pop ebx
push 0x10110ba4
lea ecx, [ebp - 0x10]
call fcn.10001719
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b474
call fcn.10001b13
push 0x10110ba8
lea ecx, [ebp - 0x10]
call fcn.10001719
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b49d
call fcn.10001b13
push 0x16
pop eax
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x10]
call fcn.1001d194
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003b4d5
call fcn.10001b13
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x10110bc4
lea ecx, [ebp - 0x10]
call fcn.10001719
push 0x16
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003b512
call fcn.10001b13
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003b51d
mov edx, dword [esi]
jmp 0x1003b521
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 - 0x44]
jne 0x1003b529
sub ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0x4c]
push eax
sar ecx, 1
lea eax, [ebp - 0x48]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003b557
push 4
jmp 0x1003b564
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1003b567
push 5
pop ebx
jmp 0x1003b583
cmp dword [edi + 0x1c], 1
lea eax, [ebp + 0x208]
push eax
jne 0x1003b57b
call fcn.1003b5c7
jmp 0x1003b580
call fcn.1003b8ca
mov ebx, eax
pop ecx
test esi, esi
je 0x1003b593
mov ecx, esi
call fcn.10001b13
jmp 0x1003b593
push 0xa
pop ebx
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x1003b5a2
call fcn.10001b13
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.1005e187
add ebp, 0x414
leave
ret