Function at 0x40ab00
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ec00
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x240], edi
cmp dword [edi + 0xc], 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x248], eax
je 0x40ada4
cmp dword [edi], 0
je 0x40ada4
movups xmm0, xmmword [str.IIME_CODETABLE_WRITE]
mov eax, dword [edi + 0xbc]
shl eax, 6
add eax, dword [edi + 0xd0]
movups xmmword [ebp - 0x220], xmm0
mov dword [ebp - 0x244], eax
movups xmm0, xmmword [0x426654]
mov ax, word [0x42666c]
push 0x1de
mov word [ebp - 0x1f8], ax
lea eax, [ebp - 0x1f6]
movups xmmword [ebp - 0x210], xmm0
push 0
movq xmm0, qword [0x426664]
push eax
movq qword [ebp - 0x200], xmm0
call fcn.00412cc0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x220]
add esp, 0xc
push 0x42660c
push eax
call esi
push dword [ebp - 0x248]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
lea eax, [ebp - 0x220]
push 0x2e
push eax
call esi
test eax, eax
je 0x40ac1b
push 0x2e
lea eax, [ebp - 0x220]
push eax
call esi
mov ecx, 0x5f
mov word [eax], cx
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x244]
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x40ada4
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
push 0
push 0
push 0
push 0xf001f
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebp - 0x244], edx
test edx, edx
jne 0x40ac95
xor esi, esi
jmp 0x40ad89
mov eax, 0x7918
mov word [edi + 0xba], ax
mov eax, dword [edi + 0x90c]
shr eax, 0x14
add eax, 2
cmp dword [edi + 0x6c8], 1
movzx eax, ax
jne 0x40acc2
mov word [edi + 0xce], ax
jmp 0x40acc9
mov word [edi + 0xda], ax
mov eax, dword [edi + 0xd0]
lea esi, [edi + 0x14]
mov dword [edi + 0xd4], eax
mov ecx, 0x159
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x240]
mov eax, dword [esi + 0xd0]
sub eax, 0x564
push eax
push dword [esi + 0x10]
lea eax, [edx + 0x564]
push eax
call fcn.00412740
sub esp, 0xc
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.00406740
mov edi, dword [ebp - 0x244]
mov ecx, esi
push edi
push dword [esi]
call fcn.0040c610
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
cmp ecx, 0xffffffff
jne 0x40ad52
xor esi, esi
jmp 0x40ad82
mov eax, dword [edi + 0xc0]
lea edx, [ebp - 0x224]
push 0
push edx
push eax
push edi
push ecx
mov dword [ebp - 0x224], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x23c]
call fcn.004066c0
mov eax, esi
jmp 0x40ada6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4