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

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x100682d1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100bc054]
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 0x10037368
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x10036d80
mov eax, dword [ecx]
jmp 0x10036d82
mov eax, ebx
test eax, eax
je 0x10037368
push edi
call fcn.1003678e
pop ecx
test eax, eax
je 0x10036d9c
push 9
jmp 0x1003736a
mov eax, dword [ebp + 0x420]
test eax, eax
je 0x10036daa
mov eax, dword [eax]
jmp 0x10036dac
mov eax, ebx
push eax
call fcn.1003678e
pop ecx
test eax, eax
jne 0x10036d95
test esi, esi
je 0x10036dc6
push esi
call fcn.1003678e
pop ecx
test eax, eax
jne 0x10036d95
test esi, esi
mov eax, 0x100a09e4
cmovne eax, esi
mov dword [ebp - 0x10], eax
call fcn.10038c46
test al, al
jne 0x10036de3
push 8
jmp 0x1003736a
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x10036e16
test eax, eax
je 0x10036e16
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 0x10036e1e
xor ebx, ebx
inc ebx
jmp 0x1003736b
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 0x1003736b
push str.docbase
lea ecx, [ebp - 0x14]
call fcn.10012712
lea eax, [ebp + 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
push str._njnlphref
lea ecx, [ebp - 0x18]
call fcn.1000155e
lea eax, [ebp - 0x18]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10036e96
call fcn.100016f0
push edi
lea ecx, [ebp - 0x18]
call fcn.1000155e
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10036ebf
call fcn.100016f0
push str._nembedded
lea ecx, [ebp - 0x18]
call fcn.1000155e
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10036eec
call fcn.100016f0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.1000155e
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10036f17
call fcn.100016f0
mov edi, dword [ebp - 0x38]
cmp byte [edi + 0x19], 0
je 0x10036f63
push ecx
push ecx
lea eax, [edi + 8]
mov ecx, esp
push eax
call fcn.10039001
mov eax, dword [ebp - 0x14]
push str.vmarg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x10036f42
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10038ca0
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.100015bc
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10036f63
call fcn.100016f0
cmp byte [edi + 0x1a], 0
je 0x10036fac
push ecx
push ecx
lea eax, [edi + 0x10]
mov ecx, esp
push eax
call fcn.10039001
mov eax, dword [ebp - 0x14]
push str.apparg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x10036f8b
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10038ca0
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.100015bc
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10036fac
call fcn.100016f0
cmp byte [edi + 0x18], 0
je 0x100372bb
mov ecx, dword [edi]
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x1003721f
mov ebx, edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x64], edi
test edi, edi
je 0x10036fd8
lock inc dword [edi + 8]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x68], esi
test esi, esi
je 0x10036fe6
lock inc dword [esi + 8]
mov byte [ebp - 4], 7
test edi, edi
je 0x10036ff2
mov eax, dword [edi]
jmp 0x10036ff4
xor eax, eax
push eax
call fcn.1003678e
pop ecx
test eax, eax
jne 0x100371e5
test esi, esi
je 0x1003700b
mov eax, dword [esi]
jmp 0x1003700d
xor eax, eax
push eax
call fcn.1003678e
pop ecx
test eax, eax
jne 0x100371e5
test edi, edi
je 0x10037029
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
xor eax, eax
jmp 0x1003702e
xor eax, eax
mov dword [ebp - 0x40], eax
test esi, esi
je 0x10037034
mov eax, dword [esi]
push str._nname.
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
call fcn.1000155e
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10037065
call fcn.100016f0
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.1000575b
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.10001697
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x100370a0
call fcn.100016f0
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 0x100a0a5c
lea ecx, [ebp - 0x28]
call fcn.1000155e
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x100370e0
call fcn.100016f0
xor eax, eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
call fcn.1000155e
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x10037110
call fcn.100016f0
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0x100a0a60
lea ecx, [ebp - 0x30]
call fcn.1000155e
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1003713e
call fcn.100016f0
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.1000575b
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.10001697
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x10037179
call fcn.100016f0
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 0x100a0a70
lea ecx, [ebp - 0x34]
call fcn.1000155e
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x100371b9
call fcn.100016f0
xor eax, eax
mov dword [ebp - 0x34], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.1000155e
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100371e5
call fcn.100016f0
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.10005c44
test esi, esi
je 0x100371f8
mov ecx, esi
call fcn.100016f0
mov byte [ebp - 4], 1
test edi, edi
je 0x10037207
mov ecx, edi
call fcn.100016f0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x1c], esi
cmp eax, dword [ebx]
jne 0x10036fca
mov edi, dword [ebp - 0x38]
push 2
pop ebx
push 0x100a0a74
lea ecx, [ebp - 0x10]
call fcn.1000155e
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003724c
call fcn.100016f0
push 0x100a0a78
lea ecx, [ebp - 0x10]
call fcn.1000155e
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10037275
call fcn.100016f0
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.1000575b
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.10001697
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100372ad
call fcn.100016f0
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 0x100a0a94
lea ecx, [ebp - 0x10]
call fcn.1000155e
push 0x16
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.10001697
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x100372ea
call fcn.100016f0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100372f5
mov edx, dword [esi]
jmp 0x100372f9
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 0x10037301
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 0x1003732f
push 4
jmp 0x1003733c
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x1003733f
push 5
pop ebx
jmp 0x1003735b
cmp dword [edi + 0x1c], 1
lea eax, [ebp + 0x208]
push eax
jne 0x10037353
call fcn.1003859f
jmp 0x10037358
call fcn.1003889d
mov ebx, eax
pop ecx
test esi, esi
je 0x1003736b
mov ecx, esi
call fcn.100016f0
jmp 0x1003736b
push 0xa
pop ebx
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x1003737a
call fcn.100016f0
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.1003a5a7
add ebp, 0x414
leave
ret