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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493195
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x224]
xor edi, edi
mov dword [ebp - 4], edi
push ecx
push 0x105
mov dword [ebp - 0x290], 0x1000
mov dword [ebp - 0x298], edi
mov byte [ebp - 0x294], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.files
lea edx, [ebp + 0xc]
push edx
call fcn.0044f840
push eax
lea ecx, [ebp - 0x27c]
call fcn.0044edc0
push 0x10
mov byte [ebp - 4], 1
call fcn.004739eb
add esp, 4
cmp eax, edi
je 0x43efc3
mov ebx, eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [ebp - 0x244], ebx
jmp 0x43efcb
mov dword [ebp - 0x244], edi
mov ebx, edi
mov dword [ebp - 0x260], edi
jmp 0x43efe0
movsx eax, byte [ebp - 0x274]
cmp eax, 7
ja case.0x43eff0.0
jmp dword [eax*4 + 0x43f648]
mov esi, dword [ebp - 0x27c]
cmp dword [esi + 8], 0
je 0x43f489
mov eax, dword [esi + 4]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
call fcn.004526f0
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ecx + 0x14]
inc eax
jmp 0x43f030
mov esi, dword [ebp - 0x27c]
mov eax, dword [esi + 8]
cmp edi, eax
jae 0x43f489
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], esi
push edi
lea edx, [ebp - 0x27c]
push edx
mov byte [ebp - 4], 2
call fcn.0044f640
push eax
lea ecx, [ebp - 0x28c]
call fcn.0044edc0
mov byte [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x43f091
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x224]
lea esi, [ebp - 0x240]
call fcn.00409bc0
push 0x4a2c48
lea ecx, [ebp - 0x28c]
push ecx
mov byte [ebp - 4], 4
call fcn.0044f840
mov edi, dword [eax]
test edi, edi
je 0x43f10f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + eax + 2]
mov eax, ebx
call fcn.00486070
mov esi, esp
test esi, esi
je 0x43f109
push ebx
push esi
push 0xffffffffffffffff
xor edx, edx
push edi
push edx
push 0xfde9
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [ebp - 0x258]
neg eax
sbb eax, eax
and eax, esi
jmp 0x43f111
mov ebx, dword [ebp - 0x258]
xor eax, eax
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x43f116
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x240]
call fcn.004046f0
push str.content
lea eax, [ebp - 0x28c]
push eax
call fcn.0044f840
mov edi, dword [eax]
test edi, edi
jne 0x43f247
cmp dword [ebp - 0x22c], 8
jb 0x43f165
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.004736d0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x284]
movsx eax, cl
xor edx, edx
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], dx
cmp eax, 4
je 0x43f1da
add eax, 0xfffffffa
cmp eax, 1
ja 0x43f1f5
mov esi, dword [ebp - 0x28c]
mov dword [ebp - 0x25c], esi
test esi, esi
je 0x43f1f5
mov byte [ebp - 4], 5
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x264]
call fcn.00452330
mov byte [ebp - 4], 2
mov eax, dword [esi + 4]
push eax
call fcn.004736d0
add esp, 4
push esi
call fcn.004736d0
jmp 0x43f1f2
test ecx, 0x100
je 0x43f1f5
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x43f1f5
push eax
call fcn.00473eae
add esp, 4
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x43f21c
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x44ec30
push ecx
push 4
push eax
call fcn.004756e7
push esi
call fcn.00473f95
add esp, 4
mov ebx, dword [ebp - 0x244]
xor eax, eax
inc dword [ebp - 0x260]
mov edi, dword [ebp - 0x260]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
jmp 0x43efe0
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f250
sub eax, edx
mov esi, eax
jne 0x43f2a4
cmp dword [ebp - 0x22c], 8
jb 0x43f275
mov edx, dword [ebp - 0x240]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
xor esi, esi
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], esi
mov byte [ebp - 4], 2
call fcn.0044ef10
jmp 0x43f3bf
test esi, esi
je 0x43f2e3
mov ecx, esi
lea eax, [ebp - 0x258]
call fcn.00443f00
mov ebx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x254]
mov eax, ebx
sub eax, ecx
add eax, esi
je 0x43f2d5
push eax
push 0
push ecx
call fcn.0047cc30
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x254], ebx
mov ebx, dword [ebp - 0x258]
push ebx
push esi
push edi
lea edi, [ebp - 0x298]
call fcn.00418a30
add esp, 0xc
cmp dword [ebp - 0x22c], 8
mov edi, eax
mov eax, dword [ebp - 0x240]
jae 0x43f30b
lea eax, [ebp - 0x240]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x248], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x43f3e8
push 0
lea ecx, [ebp - 0x248]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp edi, esi
je 0x43f430
mov edi, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
call fcn.00442ba0
cmp dword [ebp - 0x22c], 8
jb 0x43f38a
mov edx, dword [ebp - 0x240]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], esi
mov byte [ebp - 4], 2
call fcn.0044ef10
cmp ebx, esi
je 0x43f3bf
push ebx
call fcn.004736d0
add esp, 4
inc dword [ebp - 0x260]
mov ebx, dword [ebp - 0x244]
mov edi, dword [ebp - 0x260]
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], esi
jmp 0x43efe0
cmp dword [ebp - 0x22c], 8
jb 0x43f400
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.004736d0
add esp, 4
xor edx, edx
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], dx
mov byte [ebp - 4], 2
call fcn.0044ef10
test ebx, ebx
jmp 0x43f472
cmp dword [ebp - 0x22c], 8
jb 0x43f448
mov eax, dword [ebp - 0x240]
push eax
call fcn.004736d0
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], esi
mov word [ebp - 0x240], cx
mov byte [ebp - 4], 2
call fcn.0044ef10
cmp ebx, esi
je 0x43f47d
push ebx
call fcn.004736d0
add esp, 4
mov ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x27c]
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x43f4b7
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx + 4]
push 0
push ebx
push 0x83ec
push edx
jmp 0x43f4f4
mov eax, dword [ebx]
test eax, eax
je 0x43f4d0
mov edi, dword [ebx + 4]
call fcn.00403f60
mov eax, dword [ebx]
push eax
call fcn.004736d0
add esp, 4
xor edi, edi
push ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.004736d0
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 4]
add esp, 4
push edi
push edi
push 0x83ed
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x274]
movsx eax, cl
cmp eax, 4
je 0x43f54c
add eax, 0xfffffffa
cmp eax, 1
ja 0x43f561
mov dword [ebp - 0x264], esi
test esi, esi
je 0x43f561
mov byte [ebp - 4], 6
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x248]
call fcn.00452330
mov byte [ebp - 4], 0
mov eax, dword [esi + 4]
push eax
call fcn.004736d0
add esp, 4
push esi
call fcn.004736d0
jmp 0x43f55e
test ecx, 0x100
je 0x43f561
test esi, esi
je 0x43f561
push esi
call fcn.00473eae
add esp, 4
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x43f588
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x44ec30
push edx
push 4
push eax
call fcn.004756e7
push esi
call fcn.00473f95
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x14]
movsx eax, cl
cmp eax, 4
je 0x43f5e5
add eax, 0xfffffffa
cmp eax, 1
ja 0x43f5fd
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x248], esi
test esi, esi
je 0x43f5fd
mov dword [ebp - 4], 7
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x264]
call fcn.00452330
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 4]
push eax
call fcn.004736d0
add esp, 4
mov ecx, esi
push ecx
call fcn.004736d0
jmp 0x43f5fa
test ecx, 0x100
je 0x43f5fd
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43f5fd
push eax
call fcn.00473eae
add esp, 4
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43f621
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x44ec30
push edx
push 4
push eax
call fcn.004756e7
push esi
call fcn.00473f95
add esp, 4
lea esp, [ebp - 0x2ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret 0x14