Function at 0x1000a251
Capabilities:
Create thread
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd60
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xd54], ebx
cmp word [edi + 0xe], si
je 0x1000a34d
cmp dword [edi], 0x40
jne 0x1000a2a2
push dword [edi + 0x28]
lea eax, [ebx + 0x1c]
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x1000a35b
push dword [edi + 0x28]
jmp 0x1000a333
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xd20], eax
test eax, eax
je 0x1000a2c3
push eax
call sub.msvcrt.dll_strlen
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x1000a2c7
xor esi, esi
mov eax, esi
jmp 0x1000a2e2
lea eax, [esi + esi]
call fcn.1002e410
mov eax, esp
push 3
push esi
push dword [ebp - 0xd20]
push eax
call fcn.10008995
xor esi, esi
push eax
lea eax, [ebx + 0x1c]
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x1000a35b
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xd20], eax
test eax, eax
je 0x1000a313
push eax
call sub.msvcrt.dll_strlen
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x1000a317
xor esi, esi
mov eax, esi
jmp 0x1000a332
lea eax, [esi + esi]
call fcn.1002e410
mov eax, esp
push 3
push esi
push dword [ebp - 0xd20]
push eax
call fcn.10008995
xor esi, esi
push eax
lea eax, [ebx + 0x11c]
push eax
call sub.msvcrt.dll__wcsicmp
neg eax
pop ecx
sbb eax, eax
and eax, 0x456
pop ecx
inc eax
jmp 0x1000a377
movzx eax, word [edi + 0xc]
mov ecx, eax
cmp ecx, dword [ebx + 0x534]
jne 0x1000a35f
mov eax, esi
jmp 0x1000a377
cmp ecx, dword [ebx + 0x53c]
jne 0x1000a36c
xor eax, eax
inc eax
jmp 0x1000a377
cmp ecx, dword [ebx + 0x544]
jne 0x1000a377
push 2
pop eax
movzx eax, ax
sub eax, esi
je 0x1000a4a6
sub eax, 1
je 0x1000a3d9
sub eax, 1
jne 0x1000a3ae
push dword [ebx + 0x520]
lea edi, [ebx + 0x5ac]
lea ecx, [ebx - 4]
push edi
call fcn.10008be1
mov ecx, edi
mov esi, eax
call fcn.1000d0a6
test esi, esi
jne 0x1000a3b8
mov eax, 0x80070057
jmp 0x1000abd1
push dword [ebx + 0x520]
lea ecx, [ebx - 4]
call fcn.1000af77
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x1000abd1
lea esi, [ebx + 0x5ac]
push 0
mov ecx, esi
call fcn.1000d00a
push eax
lea ecx, [ebp - 0xd34]
call fcn.1000816c
cmp dword [edi + 0x10], 0
je 0x1000a44a
push 0x10032f07
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000a44a
push 0
mov ecx, esi
call fcn.1000d00a
push str._cmdline
mov esi, eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push str._cmdline
lea ecx, [esi + 4]
call fcn.10008909
push dword [edi + 0x10]
lea esi, [ebx + 0x5ac]
push 0
mov ecx, esi
call fcn.1000d00a
lea ecx, [eax + 4]
call fcn.10008779
push dword [ebx + 0x520]
lea ecx, [ebx - 4]
push esi
call fcn.10008be1
lea ecx, [ebx + 0x5ac]
mov esi, eax
call fcn.1000d0a6
test esi, esi
jne 0x1000a471
mov esi, 0x80070057
jmp 0x1000a491
push dword [ebx + 0x520]
lea ecx, [ebx - 4]
call fcn.1000b09a
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov ecx, dword [ebp - 0xd30]
add ecx, 0xfffffff0
call fcn.10004e6b
mov eax, esi
jmp 0x1000abd1
cmp dword [0x10047090], 0
je 0x1000abcf
mov eax, dword [0x100334ac]
lea ecx, [ebp - 0xd34]
mov dword [ebp - 0xc], eax
mov ax, word [0x100334b0]
mov word [ebp - 8], ax
mov dword [ebp - 0xd44], 0x104
mov dword [ebp - 0xd34], esi
mov dword [ebp - 0xd30], esi
call fcn.1000c504
mov dword [ebp - 0xd34], eax
mov edi, 0x208
push edi
lea eax, [ebp - 0x294]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esi + 0x63]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xd44]
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.MPR.dll_WNetGetConnectionW
lea eax, [ebp - 0x294]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
test eax, eax
je 0x1000a5a8
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0xd24]
call fcn.10007f40
lea ecx, [ebp - 0xd24]
call fcn.1000b4ce
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xd20]
call fcn.10007f40
lea eax, [ebp - 0xd20]
push eax
lea eax, [ebp - 0xd60]
push eax
lea ecx, [ebp - 0xd34]
call fcn.10007986
mov ecx, dword [ebp - 0xd60]
lea eax, [ebp - 0xd24]
push eax
lea ecx, [ecx + 0x14]
call fcn.100083b9
mov ecx, dword [ebp - 0xd20]
lea ecx, [ecx - 0x10]
call fcn.10004e6b
mov ecx, dword [ebp - 0xd24]
lea ecx, [ecx - 0x10]
call fcn.10004e6b
inc esi
cmp esi, 0x18
jl 0x1000a4f1
call fcn.100038ff
push eax
lea ecx, [ebp - 0xd24]
call fcn.10001c63
push 0x410
xor esi, esi
lea eax, [ebp - 0x8ac]
push esi
push eax
call sub.msvcrt.dll_memset
push 0x410
lea eax, [ebp - 0xcbc]
push esi
push eax
call sub.msvcrt.dll_memset
push str.QHSafeMain.exe
lea eax, [ebp - 0x8aa]
push edi
push eax
call fcn.1000d5db
add esp, 0x24
test eax, eax
je 0x1000abb6
lea eax, [ebp - 0x8aa]
push 0x7e
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x1000a668
push 0x410
lea eax, [ebp - 0x49c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8aa]
push eax
push edi
lea eax, [ebp - 0x49c]
push eax
call fcn.1000c2a1
lea eax, [ebp - 0x49c]
push eax
call fcn.10006359
pop ecx
lea eax, [ebp - 0x49c]
push eax
push 0x207
lea eax, [ebp - 0x8aa]
push eax
call fcn.1000c2a1
push 0x22
pop eax
mov word [ebp - 0x8ac], ax
call fcn.100038ff
push eax
lea ecx, [ebp - 0xd2c]
call fcn.10001c63
call fcn.1000b526
xor edi, edi
inc edi
mov eax, dword [eax + 4]
mov dword [ebp - 0xd58], eax
xor eax, eax
cmp ax, word [0x10047098]
jne 0x1000a6de
push 0x208
lea eax, [ebp - 0x294]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x10047098
push esi
push 0x100334d4
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push 0x10047098
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xd20], esi
cmp esi, 0xffffffff
jne 0x1000a72a
test edi, edi
je 0x1000aa59
xor esi, esi
push 0x208
push esi
push 0x10047098
mov edi, esi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x1000a694
and dword [ebp - 0xd3c], 0
lea eax, [ebp - 0xd3c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 2
lea eax, [ebp - 0xd48]
mov dword [ebp - 0xd48], 0xfeff
push eax
push esi
call edi
push 0
lea eax, [ebp - 0xd3c]
push eax
push 0xe
push 0x100334d8
push esi
call edi
mov edi, dword [0x1004708c]
and dword [ebp - 0xd40], 0
cmp dword [0x10047090], 0
mov edi, dword [edi]
jbe 0x1000aa52
mov ebx, dword [ebp - 0xd20]
mov esi, 0x80
lea eax, [ebp - 0x8c]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
push dword [ebp - 0xd40]
lea eax, [ebp - 0x8c]
push 0x100334e8
push esi
push eax
call fcn.1000c26b
add esp, 0x1c
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0xcec]
push eax
call fcn.10007fa8
and dword [ebp - 0xcc4], 0
lea esi, [edi + 8]
xor eax, eax
mov dword [ebp - 0xcc0], 7
mov word [ebp - 0xcd4], ax
cmp dword [esi + 0x14], 8
jb 0x1000a7f1
mov esi, dword [esi]
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0xcd4]
call fcn.1000cfbc
cmp dword [ebp - 0xcc0], 8
lea eax, [ebp - 0xcd4]
jb 0x1000a81a
mov eax, dword [ebp - 0xcd4]
push eax
call fcn.1000d02b
pop ecx
mov dword [ebp - 0xd50], eax
call fcn.100038ff
push eax
lea ecx, [ebp - 0xd28]
call fcn.10001c63
cmp dword [ebp - 0xcc0], 8
lea ecx, [ebp - 0xcd4]
jb 0x1000a84d
mov ecx, dword [ebp - 0xcd4]
push ecx
lea ecx, [ebp - 0xd38]
call fcn.10007f40
push 2
lea eax, [ebp - 0xd4c]
push eax
lea ecx, [ebp - 0xd38]
call fcn.1000b24d
push eax
lea ecx, [ebp - 0xd24]
call fcn.100083b9
mov ecx, dword [ebp - 0xd4c]
lea ecx, [ecx - 0x10]
call fcn.10004e6b
lea ecx, [ebp - 0xd24]
call fcn.1000b4ce
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0xd5c]
push eax
lea ecx, [ebp - 0xd34]
call fcn.1000d182
lea ecx, [ebp - 0xd28]
mov esi, dword [eax]
cmp esi, dword [ebp - 0xd34]
je 0x1000a902
lea eax, [ebp - 0xd38]
push eax
call fcn.100083b9
push 2
push 0
lea ecx, [ebp - 0xd28]
call fcn.10008d5c
push dword [esi + 0x14]
lea ecx, [ebp - 0xd28]
push 0
call fcn.1000a1c2
mov esi, dword [ebp - 0xd28]
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0xcd4]
call fcn.1000cfbc
jmp 0x1000a912
push 0x10032f07
call fcn.10008409
mov esi, dword [ebp - 0xd28]
mov ecx, dword [ebp - 0xd38]
lea ecx, [ecx - 0x10]
call fcn.10004e6b
cmp dword [ebp - 0xd50], 0
lea eax, [ebp - 0xcd4]
jne 0x1000a985
push 0x100334f0
push eax
lea eax, [ebp - 0xd1c]
push 0x100334f8
push eax
call fcn.100062c7
add esp, 0xc
push eax
lea eax, [ebp - 0xd04]
push eax
call fcn.100062a1
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1000a963
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xcec]
call fcn.1000cf26
lea ecx, [ebp - 0xd04]
call fcn.1000cdd6
lea ecx, [ebp - 0xd1c]
jmp 0x1000a9d9
push str.__r_n
push eax
lea eax, [ebp - 0xd04]
push 0x100334f8
push eax
call fcn.100062c7
add esp, 0xc
push eax
lea eax, [ebp - 0xd1c]
push eax
call fcn.100062a1
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1000a9b9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xcec]
call fcn.1000cf26
lea ecx, [ebp - 0xd1c]
call fcn.1000cdd6
lea ecx, [ebp - 0xd04]
call fcn.1000cdd6
cmp dword [ebp - 0xcd8], 8
lea ecx, [ebp - 0xcec]
jb 0x1000a9f3
mov ecx, dword [ebp - 0xcec]
push 0
lea eax, [ebp - 0xd3c]
push eax
mov eax, dword [ebp - 0xcdc]
add eax, eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [edi]
lea ecx, [esi - 0x10]
call fcn.10004e6b
lea ecx, [ebp - 0xcd4]
call fcn.1000cdd6
lea ecx, [ebp - 0xcec]
call fcn.1000cdd6
mov eax, dword [ebp - 0xd40]
inc eax
mov dword [ebp - 0xd40], eax
cmp eax, dword [0x10047090]
jb 0x1000a78b
mov ebx, dword [ebp - 0xd54]
mov esi, dword [ebp - 0xd20]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [ebp - 0xd58]
cmp edi, 6
jb 0x1000aad3
push SysReAllocString
lea eax, [ebp - 0x8ac]
push eax
push 0
push 0x208
lea eax, [ebp - 0xcbc]
push eax
call fcn.1000c328
mov esi, 0x1003350c
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0xd2c]
call fcn.1000c141
mov esi, 0x10047098
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0xd2c]
call fcn.10008909
push 0x10033520
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push 0x10033520
lea ecx, [ebp - 0xd2c]
call fcn.10008909
jmp 0x1000aad8
mov esi, 0x10047098
push 0x10033524
push 0x410
lea eax, [ebp - 0x8ac]
push eax
call fcn.1000c1b5
push esi
mov esi, 0x410
lea eax, [ebp - 0x8ac]
push esi
push eax
call fcn.1000c1b5
push 0x10033520
push esi
lea eax, [ebp - 0x8ac]
push eax
call fcn.1000c1b5
lea eax, [ebp - 0x8ac]
push eax
lea ecx, [ebx - 4]
call fcn.1000cd1c
mov esi, dword [ebp - 0xd2c]
test eax, eax
jne 0x1000ab49
cmp edi, 6
jb 0x1000ab49
push 1
xor ecx, ecx
lea eax, [ebp - 0xcba]
push ecx
push ecx
push ecx
push esi
push eax
push ecx
lea ecx, [ebx - 4]
call fcn.1000beb1
push 0x20c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov dword [esp], 0x104
push 0
lea edi, [ebx + 4]
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10047098
push 0x104
push edi
call fcn.1000c2a1
mov eax, dword [ebp - 0xd20]
xor edi, edi
push 0x104
push edi
push 0x10047098
mov dword [ebx], eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push edi
push ebx
push 0x1000c3ed
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.10004e6b
mov ecx, dword [ebp - 0xd24]
lea ecx, [ecx - 0x10]
call fcn.10004e6b
lea ecx, [ebp - 0xd34]
call fcn.10002023
xor eax, eax
lea esp, [ebp - 0xd6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e36c
leave
ret 8