Function at 0x100a7d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10130fa7
mov eax, dword fs:[0]
push eax
sub esp, 0xbd4
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xb74], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xb70], ecx
test edi, edi
je 0x100a7edc
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x100a7da3
mov eax, dword [ecx]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100fc650
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100fc650
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x100a7ddd
mov esi, dword [esi]
lea ecx, [ebp - 0x218]
mov edx, 0x104
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100a7e10
movzx eax, word [ecx + esi]
test ax, ax
je 0x100a7e10
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100a7df0
jmp 0x100a7e14
test edx, edx
jne 0x100a7e17
sub ecx, 2
xor eax, eax
mov word [ecx], ax
cmp word [ebp - 0x218], ax
je 0x100a7e9f
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100a7e30
lea eax, [ebp - 0x218]
sub esi, ecx
push 0x10167e4c
push eax
sar esi, 1
call fcn.101087cc
add esp, 8
cmp eax, esi
jge 0x100a7e9f
lea ecx, [ebp - 0x218]
sub esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a7e62
sub ecx, edx
sar ecx, 1
sub ecx, esi
je 0x100a7e9f
test esi, esi
je 0x100a7e9f
add esi, esi
lea eax, [ebp - 0x218]
lea eax, [eax + ecx*2]
push esi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100fc0d0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x218], ax
mov edx, 0x10167e4c
lea ecx, [ebp - 0x218]
call fcn.1004da60
lea ecx, [ebp - 0x218]
call fcn.1004d960
xorps xmm0, xmm0
lea edx, [ebp - 0xb80]
mov ecx, edi
movlpd qword [ebp - 0xb80], xmm0
call fcn.100c7760
test eax, eax
je 0x100a7ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
jmp 0x100a83d9
cmp dword [ebp - 0xb80], 0
ja 0x100a7ef6
xor eax, eax
jmp 0x100a83d9
call fcn.100c7d40
test eax, eax
jne 0x100a7ed6
push 0x18
call fcn.100e279e
add esp, 4
mov dword [ebp - 0xb78], eax
mov ecx, eax
call fcn.100ac030
mov ecx, eax
mov dword [ebp - 0xb84], eax
call sym.cloudinput.ime_protected:_void___thiscall_boost::serialization::singleton_class_boost::serialization::extended_type_info_typeid_struct_weasel::CandidateInfo__::constructor_void_
mov dword [ebp - 0xb78], eax
test eax, eax
je 0x100a7f33
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov dword [ebp - method.CSmartPtrBase_class_CMemBufferAlloc_.virtual_0], 0x10163440
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
push 0x50
lea eax, [ebp - 0xbe0]
push 0
push eax
call fcn.100fc650
push 0x104
lea eax, [ebp - 0x72c]
push 0
push eax
call fcn.100fc650
add esp, 8
lea eax, [ebp - 0x72c]
lea edx, [ebp - 0xbe0]
mov ecx, edi
push 0x104
push eax
call fcn.100c7c90
add esp, 0x18
test eax, eax
je 0x100a7f9d
call ebx
jmp 0x100a83a8
push 0x208
lea eax, [ebp - 0xb3c]
push 0
push eax
call fcn.100fc650
add esp, 0xc
lea eax, [ebp - 0xb3c]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x72c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100fc650
lea ecx, [ebp - 0x420]
add esp, 0xc
lea esi, [ebp - 0xb3c]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100a8020
movzx eax, word [ecx + esi]
test ax, ax
je 0x100a8020
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100a8000
jmp 0x100a8024
test edx, edx
jne 0x100a8027
sub ecx, 2
xor eax, eax
mov edx, 0x10167e4c
mov word [ecx], ax
lea ecx, [ebp - 0x420]
call fcn.1004da60
cmp word [ebp - 0x420], 0
je 0x100a80bf
lea esi, [ebp - 0x420]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100a8050
lea eax, [ebp - 0x420]
sub esi, ecx
push 0x10167e4c
push eax
sar esi, 1
call fcn.101087cc
add esp, 8
cmp eax, esi
jge 0x100a80bf
lea ecx, [ebp - 0x420]
sub esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8082
sub ecx, edx
sar ecx, 1
sub ecx, esi
je 0x100a80bf
test esi, esi
je 0x100a80bf
add esi, esi
lea eax, [ebp - 0x420]
lea eax, [eax + ecx*2]
push esi
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.100fc0d0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x420], ax
lea ecx, [ebp - 0x420]
call fcn.1004d960
cmp word [ebp - 0x218], 0
je 0x100a8176
push 0x208
lea eax, [ebp - 0x934]
push 0
push eax
call fcn.100fc650
lea ecx, [ebp - 0x934]
add esp, 0xc
lea esi, [ebp - 0x420]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100a8123
movzx eax, word [ecx + esi]
test ax, ax
je 0x100a8123
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100a8103
jmp 0x100a8127
test edx, edx
jne 0x100a812a
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x934]
push 0x80
push eax
push 0x10
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
je 0x100a83a8
lea eax, [ebp - 0x628]
push 0x10162cec
push eax
call fcn.10127e4b
add esp, 8
test eax, eax
je 0x100a81bc
jmp 0x100a83a8
lea ecx, [ebp - 0x628]
mov edx, 0x104
lea esi, [ebp - 0x420]
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100a81b0
movzx eax, word [ecx + esi]
test ax, ax
je 0x100a81b0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100a8190
jmp 0x100a81b4
test edx, edx
jne 0x100a81b7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
test byte [ebp - 0xbac], 0x10
je 0x100a8265
push dword [ebp - 0xb70]
lea ecx, [ebp - 0xb54]
call fcn.10045090
push 1
push 0x101601ac
lea ecx, [ebp - 0xb54]
mov byte [ebp - 4], 1
call fcn.10043c90
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8200
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xb54]
call fcn.10043c90
push 1
push 0x101601ac
lea ecx, [ebp - 0xb54]
call fcn.10043c90
cmp dword [ebp - 0xb40], 8
lea eax, [ebp - 0xb54]
cmovae eax, dword [ebp - 0xb54]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0xb54]
mov byte [ebp - 4], 0
call fcn.10043ac0
jmp 0x100a83a8
mov esi, dword [ebp - 0xbc4]
cmp esi, 0x50000000
ja 0x100a83bb
mov ecx, edi
call fcn.100c84b0
test eax, eax
je 0x100a8289
call ebx
jmp 0x100a83a8
mov dword [ebp - 0xb8c], edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xb84]
push esi
call fcn.100ac0c0
mov ebx, eax
test ebx, ebx
jne 0x100a82c1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.100c8790
mov byte [ebp - 4], 0
jmp 0x100a83a8
push dword [ebp - 0xb70]
lea ecx, [ebp - 0xb6c]
call fcn.10045090
push 1
push 0x101601ac
lea ecx, [ebp - 0xb6c]
mov byte [ebp - 4], 5
call fcn.10043c90
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a82f1
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xb6c]
call fcn.10043c90
cmp dword [ebp - 0xb58], 8
lea eax, [ebp - 0xb6c]
push 0
cmovae eax, dword [ebp - 0xb6c]
push 0
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100a8382
mov dword [ebp - 0xb90], edi
mov ecx, dword [ebp - 0xb74]
mov edx, ebx
push esi
mov byte [ebp - 4], 6
call fcn.100c84c0
add esp, 4
lea eax, [ebp - 0xb7c]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100a837b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xb6c]
call fcn.10043ac0
mov edi, dword [ebp - 0xb74]
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.100c8790
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
call fcn.100c7da0
test eax, eax
je 0x100a7f50
xor esi, esi
jmp 0x100a83c0
mov esi, 0x80004005
mov eax, dword [ebp - 0xb78]
mov dword [ebp - 4], 8
test eax, eax
je 0x100a83d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret