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

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x60
mov eax, 0x10059a89
call fcn.10039bd1
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 0x100383e2
cmp ecx, ebx
je 0x10037d6a
mov eax, dword [ecx]
jmp 0x10037d6c
xor eax, eax
cmp eax, ebx
je 0x100383e2
push edi
call fcn.1003580a
pop ecx
test eax, eax
je 0x10037d95
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10037d8e
call fcn.10001441
push 9
jmp 0x100383ed
mov eax, dword [ebp + 0x420]
cmp eax, ebx
je 0x10037da3
mov eax, dword [eax]
jmp 0x10037da5
xor eax, eax
push eax
call fcn.1003580a
pop ecx
test eax, eax
jne 0x10037d7f
cmp esi, ebx
je 0x10037de1
push esi
call fcn.1003580a
pop ecx
test eax, eax
jne 0x10037d7f
mov dword [ebp - 0x1c], esi
call fcn.10037662
test al, al
jne 0x10037dea
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10037dda
call fcn.10001441
push 8
jmp 0x100383ed
mov dword [ebp - 0x1c], 0x1006d6a0
jmp 0x10037dc2
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x100383ce
cmp eax, ebx
je 0x100383ce
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 0x100383ce
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 0x10037e63
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x10037e5c
call fcn.10001441
push 2
jmp 0x100383ed
push str.docbase
lea ecx, [ebp - 0x10]
call fcn.1001060c
lea eax, [ebp + 0x420]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001524
push str._njnlphref
lea ecx, [ebp - 0x18]
call fcn.10001309
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10001524
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10037eb0
call fcn.10001441
push edi
lea ecx, [ebp - 0x18]
call fcn.10001309
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.10001524
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10037ed9
call fcn.10001441
push str._nembedded
lea ecx, [ebp - 0x18]
call fcn.10001309
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.10001524
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10037f06
call fcn.10001441
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.10001309
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.10001524
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10037f31
call fcn.10001441
mov esi, dword [ebp - 0x2c]
mov edi, dword [sym.imp.kernel32.dll_InterlockedIncrement]
cmp byte [esi + 0x29], bl
je 0x10037f8b
sub esp, 0xc
lea eax, [esi + 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.100385c0
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 0x10037f6a
add eax, 8
push eax
call edi
lea eax, [ebp - 0x14]
push eax
call fcn.10037a8e
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
call fcn.1000147f
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10037f8b
call fcn.10001441
cmp byte [esi + 0x2a], bl
je 0x10037fdc
sub esp, 0xc
lea eax, [esi + 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.100385c0
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 0x10037fbb
add eax, 8
push eax
call edi
lea eax, [ebp - 0x14]
push eax
call fcn.10037a8e
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
call fcn.1000147f
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10037fdc
call fcn.10001441
cmp byte [esi + 0x28], bl
je 0x100382e1
mov eax, esi
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
xor edi, edi
jmp 0x1003823f
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1003800a
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 0x10038020
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 0x1003802f
mov eax, dword [eax]
jmp 0x10038031
xor eax, eax
push eax
call fcn.1003580a
pop ecx
test eax, eax
jne 0x10038211
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x1003804b
mov eax, dword [eax]
jmp 0x1003804d
xor eax, eax
push eax
call fcn.1003580a
pop ecx
test eax, eax
jne 0x10038211
cmp dword [ebp - 0x20], ebx
je 0x10038068
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
jmp 0x1003806a
xor esi, esi
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10038078
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x1003807b
mov dword [ebp - 0x24], ebx
push str._nname.
lea ecx, [ebp - 0x38]
call fcn.10001309
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.10001524
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x100380a7
call fcn.10001441
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.1000535c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.10001524
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x100380dd
call fcn.10001441
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x1006d718
lea ecx, [ebp - 0x3c]
call fcn.10001309
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.10001524
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x1003811b
call fcn.10001441
mov dword [ebp - 0x3c], ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.10001309
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.10001524
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x10038147
call fcn.10001441
mov dword [ebp - 0x30], ebx
push 0x1006d71c
lea ecx, [ebp - 0x34]
call fcn.10001309
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.10001524
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x10038173
call fcn.10001441
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.1000535c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.10001524
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x100381a9
call fcn.10001441
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x1006d72c
lea ecx, [ebp - 0x1c]
call fcn.10001309
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x10
call fcn.10001524
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x100381e7
call fcn.10001441
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.10001309
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
call fcn.10001524
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10038211
call fcn.10001441
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.1000492e
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
je 0x10038225
call fcn.10001441
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10038235
call fcn.10001441
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov esi, dword [ebp - 0x14]
inc edi
cmp esi, eax
jne 0x10037ff6
push 0x1006d730
lea ecx, [ebp - 0x14]
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.10001524
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10038274
call fcn.10001441
push 0x1006d734
lea ecx, [ebp - 0x14]
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
call fcn.10001524
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x1003829d
call fcn.10001441
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.1000535c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x15
call fcn.10001524
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x100382d3
call fcn.10001441
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x1006d750
lea ecx, [ebp - 0x14]
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.10001524
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1003830e
call fcn.10001441
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x10038319
mov edx, dword [edi]
jmp 0x1003831b
xor edx, edx
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10038320
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 0x10038366
cmp edi, ebx
je 0x10038350
mov ecx, edi
call fcn.10001441
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x1003835f
call fcn.10001441
push 4
jmp 0x100383ed
push dword [ebp - 0x40]
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x10038391
cmp edi, ebx
je 0x1003837e
mov ecx, edi
call fcn.10001441
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x1003838d
call fcn.10001441
push 5
jmp 0x100383ed
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x2c], 1
lea eax, [ebp + 0x208]
push eax
jne 0x100383c7
call fcn.10036c8c
mov esi, eax
pop ecx
cmp edi, ebx
je 0x100383b4
mov ecx, edi
call fcn.10001441
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x100383c3
call fcn.10001441
mov eax, esi
jmp 0x100383ee
call fcn.10036f7c
jmp 0x100383a6
mov ecx, dword [ebp + 0x420]
cmp ecx, ebx
je 0x100383dd
call fcn.10001441
xor eax, eax
inc eax
jmp 0x100383ee
cmp ecx, ebx
je 0x100383eb
call fcn.10001441
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.10039bc2
add ebp, 0x414
leave
ret