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

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x1006b3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100be114]
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 0x100382ef
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x100382ef
cmp dword [ecx], ebx
je 0x100382ef
push edi
call fcn.1003770b
pop ecx
test eax, eax
je 0x10037d0f
push 9
jmp 0x100382f1
mov eax, dword [ebp + 0x420]
test eax, eax
je 0x10037d1d
mov eax, dword [eax]
jmp 0x10037d1f
mov eax, ebx
push eax
call fcn.1003770b
pop ecx
test eax, eax
jne 0x10037d08
test esi, esi
je 0x10037d39
push esi
call fcn.1003770b
pop ecx
test eax, eax
jne 0x10037d08
test esi, esi
mov eax, 0x100a3be8
cmovne eax, esi
mov dword [ebp - 0x10], eax
call fcn.10039ced
test al, al
jne 0x10037d56
push 8
jmp 0x100382f1
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x10037d8b
test eax, eax
je 0x10037d8b
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 0x10037d93
xor ebx, ebx
inc ebx
jmp 0x100382f2
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 0x100382f2
push str.docbase
lea ecx, [ebp - 0x14]
call fcn.100127e8
lea eax, [ebp + 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
push str._njnlphref
lea ecx, [ebp - 0x18]
call fcn.1000154d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10037e09
call fcn.100016dc
push edi
lea ecx, [ebp - 0x18]
call fcn.1000154d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10037e32
call fcn.100016dc
push str._nembedded
lea ecx, [ebp - 0x18]
call fcn.1000154d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10037e5f
call fcn.100016dc
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.1000154d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10037e8a
call fcn.100016dc
mov edi, dword [ebp + 0x428]
cmp byte [edi + 0x19], 0
je 0x10037ee0
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.1003a0d6
mov eax, dword [ebp - 0x14]
push str.vmarg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x10037ebf
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10039d47
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.100015ab
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10037ee0
call fcn.100016dc
cmp byte [edi + 0x1a], 0
je 0x10037f30
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.1003a0d6
mov eax, dword [ebp - 0x14]
push str.apparg
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x10037f0f
lock inc dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.10039d47
add esp, 0x14
lea ecx, [ebp - 0x14]
push eax
call fcn.100015ab
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10037f30
call fcn.100016dc
cmp byte [edi + 0x18], 0
je 0x10038242
mov ecx, dword [edi]
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x100381a6
mov ebx, edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x60], edi
test edi, edi
je 0x10037f5c
lock inc dword [edi + 8]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x64], esi
test esi, esi
je 0x10037f6a
lock inc dword [esi + 8]
mov byte [ebp - 4], 7
test edi, edi
je 0x10037f76
mov eax, dword [edi]
jmp 0x10037f78
xor eax, eax
push eax
call fcn.1003770b
pop ecx
test eax, eax
jne 0x10038169
test esi, esi
je 0x10037f8f
mov eax, dword [esi]
jmp 0x10037f91
xor eax, eax
push eax
call fcn.1003770b
pop ecx
test eax, eax
jne 0x10038169
test edi, edi
je 0x10037fad
mov eax, dword [edi]
mov dword [ebp - 0x3c], eax
xor eax, eax
jmp 0x10037fb2
xor eax, eax
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x10037fb8
mov eax, dword [esi]
push str._nname.
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
call fcn.1000154d
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10037fe9
call fcn.100016dc
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.10005798
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.10001683
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x10038024
call fcn.100016dc
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 0x100a3c60
lea ecx, [ebp - 0x28]
call fcn.1000154d
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x10038064
call fcn.100016dc
xor eax, eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.1000154d
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x10038094
call fcn.100016dc
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0x100a3c64
lea ecx, [ebp - 0x30]
call fcn.1000154d
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x100380c2
call fcn.100016dc
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.10005798
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.10001683
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x100380fd
call fcn.100016dc
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 0x100a3c74
lea ecx, [ebp - 0x34]
call fcn.1000154d
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1003813d
call fcn.100016dc
xor eax, eax
mov dword [ebp - 0x34], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.1000154d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10038169
call fcn.100016dc
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.1003a190
test esi, esi
je 0x1003817c
mov ecx, esi
call fcn.100016dc
mov byte [ebp - 4], 1
test edi, edi
je 0x1003818b
mov ecx, edi
call fcn.100016dc
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x1c], esi
cmp eax, dword [ebx]
jne 0x10037f4e
mov edi, dword [ebp + 0x428]
push 2
pop ebx
push 0x100a3c78
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x100381d3
call fcn.100016dc
push 0x100a3c7c
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100381fc
call fcn.100016dc
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.10005798
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.10001683
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10038234
call fcn.100016dc
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 0x100a3c98
lea ecx, [ebp - 0x10]
call fcn.1000154d
push 0x16
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10038271
call fcn.100016dc
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003827c
mov edx, dword [esi]
jmp 0x10038280
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 0x10038288
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 0x100382b6
push 4
jmp 0x100382c3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100382c6
push 5
pop ebx
jmp 0x100382e2
cmp dword [edi + 0x1c], 1
lea eax, [ebp + 0x208]
push eax
jne 0x100382da
call fcn.1003960e
jmp 0x100382df
call fcn.10039911
mov ebx, eax
pop ecx
test esi, esi
je 0x100382f2
mov ecx, esi
call fcn.100016dc
jmp 0x100382f2
push 0xa
pop ebx
mov ecx, dword [ebp + 0x420]
test ecx, ecx
je 0x10038301
call fcn.100016dc
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.1003b105
add ebp, 0x414
leave
ret