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

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x60
mov eax, 0x10071c01
call fcn.1003c0ab
mov eax, dword [ebp + 0x428]
mov edi, dword [ebp + 0x41c]
mov esi, dword [ebp + 0x424]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x420]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ebx
cmp edi, ebx
je 0x10039bdc
cmp ecx, ebx
je 0x10039564
mov eax, dword [ecx]
jmp 0x10039566
xor eax, eax
cmp eax, ebx
je 0x10039bdc
push edi
call fcn.10036d49
pop ecx
test eax, eax
je 0x1003958f
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10039588
call fcn.10001238
push 9
jmp 0x10039be7
mov eax, dword [ebp + 0x420]
cmp eax, ebx
je 0x1003959d
mov eax, dword [eax]
jmp 0x1003959f
xor eax, eax
push eax
call fcn.10036d49
pop ecx
test eax, eax
jne 0x10039579
cmp esi, ebx
je 0x100395db
push esi
call fcn.10036d49
pop ecx
test eax, eax
jne 0x10039579
mov dword [ebp - 0x1c], esi
call fcn.10038d42
test al, al
jne 0x100395e4
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x100395d4
call fcn.10001238
push 8
jmp 0x10039be7
mov dword [ebp - 0x1c], 0x10085228
jmp 0x100395bc
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x10039bc8
cmp eax, ebx
je 0x10039bc8
lea eax, [ebp + 0x208]
push eax
push ebx
push str.JNLP
lea eax, [ebp]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
cmp eax, ebx
je 0x10039bc8
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x1003965d
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10039656
call fcn.10001238
push 2
jmp 0x10039be7
push str.docbase
lea ecx, [ebp - 0x10]
call fcn.1000b23a
lea eax, [ebp + 0x420]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000132e
push str._njnlphref
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x100396aa
call fcn.10001238
push edi
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x100396d3
call fcn.10001238
push str._nembedded
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10039700
call fcn.10001238
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1003972b
call fcn.10001238
mov esi, dword [ebp - 0x2c]
mov edi, dword [sym.imp.kernel32.dll_InterlockedIncrement]
cmp byte [esi + 0x29], bl
je 0x10039785
sub esp, 0xc
lea eax, [esi + 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.1003922f
mov eax, dword [ebp - 0x10]
push str.vmarg
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x10039764
add eax, 8
push eax
call edi
lea eax, [ebp - 0x14]
push eax
call fcn.10039288
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
call fcn.10001289
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10039785
call fcn.10001238
cmp byte [esi + 0x2a], bl
je 0x100397d6
sub esp, 0xc
lea eax, [esi + 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.1003922f
mov eax, dword [ebp - 0x10]
push str.apparg
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x100397b5
add eax, 8
push eax
call edi
lea eax, [ebp - 0x14]
push eax
call fcn.10039288
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
call fcn.10001289
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x100397d6
call fcn.10001238
cmp byte [esi + 0x28], bl
je 0x10039adb
mov eax, esi
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
xor edi, edi
jmp 0x10039a39
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x10039804
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x1003981a
mov eax, esi
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x10039829
mov eax, dword [eax]
jmp 0x1003982b
xor eax, eax
push eax
call fcn.10036d49
pop ecx
test eax, eax
jne 0x10039a0b
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10039845
mov eax, dword [eax]
jmp 0x10039847
xor eax, eax
push eax
call fcn.10036d49
pop ecx
test eax, eax
jne 0x10039a0b
cmp dword [ebp - 0x20], ebx
je 0x10039862
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
jmp 0x10039864
xor esi, esi
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10039872
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x10039875
mov dword [ebp - 0x24], ebx
push str._nname.
lea ecx, [ebp - 0x38]
call fcn.100010b1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.1000132e
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x100398a1
call fcn.10001238
mov dword [ebp - 0x38], ebx
push 0x16
pop eax
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.1001c56f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.1000132e
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x100398d7
call fcn.10001238
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x100852a0
lea ecx, [ebp - 0x3c]
call fcn.100010b1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.1000132e
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x10039915
call fcn.10001238
mov dword [ebp - 0x3c], ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.100010b1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.1000132e
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x10039941
call fcn.10001238
mov dword [ebp - 0x30], ebx
push 0x100852a4
lea ecx, [ebp - 0x34]
call fcn.100010b1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.1000132e
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x1003996d
call fcn.10001238
mov dword [ebp - 0x34], ebx
push 0x16
pop eax
mov word [ebp - 0x58], ax
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.1001c56f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.1000132e
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x100399a3
call fcn.10001238
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x100852b4
lea ecx, [ebp - 0x1c]
call fcn.100010b1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x10
call fcn.1000132e
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x100399e1
call fcn.10001238
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10039a0b
call fcn.10001238
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.1002bc3b
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x10039a1f
call fcn.10001238
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10039a2f
call fcn.10001238
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov esi, dword [ebp - 0x14]
inc edi
cmp esi, eax
jne 0x100397f0
push 0x100852b8
lea ecx, [ebp - 0x14]
call fcn.100010b1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.1000132e
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10039a6e
call fcn.10001238
push 0x100852bc
lea ecx, [ebp - 0x14]
call fcn.100010b1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
call fcn.1000132e
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10039a97
call fcn.10001238
push 0x16
pop eax
mov word [ebp - 0x58], ax
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x14
call fcn.1001c56f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x15
call fcn.1000132e
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10039acd
call fcn.10001238
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x100852d8
lea ecx, [ebp - 0x14]
call fcn.100010b1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.1000132e
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10039b08
call fcn.10001238
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x10039b13
mov edx, dword [edi]
jmp 0x10039b15
xor edx, edx
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10039b1a
sub eax, esi
push ebx
sar eax, 1
lea ecx, [ebp - 0x5c]
push ecx
add eax, eax
push eax
push edx
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x10039b60
cmp edi, ebx
je 0x10039b4a
mov ecx, edi
call fcn.10001238
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10039b59
call fcn.10001238
push 4
jmp 0x10039be7
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x10039b8b
cmp edi, ebx
je 0x10039b78
mov ecx, edi
call fcn.10001238
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10039b87
call fcn.10001238
push 5
jmp 0x10039be7
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x2c], 1
lea eax, [ebp + 0x208]
push eax
jne 0x10039bc1
call fcn.1003836c
mov esi, eax
pop ecx
cmp edi, ebx
je 0x10039bae
mov ecx, edi
call fcn.10001238
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10039bbd
call fcn.10001238
mov eax, esi
jmp 0x10039be8
call fcn.1003865c
jmp 0x10039ba0
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10039bd7
call fcn.10001238
xor eax, eax
inc eax
jmp 0x10039be8
cmp ecx, ebx
je 0x10039be5
call fcn.10001238
push 0xa
pop eax
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.1003c09c
add ebp, 0x414
leave
ret