Function at 0x409b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f76b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x42b458]
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 ebx, ecx
cmp dword [ebx + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
je 0x409c7b
mov eax, dword [ebx + 0x14]
movdqu xmm0, xmmword [str.IIME_CODETABLE_WRITE]
push 0x1de
push 0
mov edi, dword [eax + 0xa8]
shl edi, 6
add edi, dword [eax + 0xbc]
mov ax, word [0x427278]
movdqu xmmword [ebp - 0x21c], xmm0
mov word [ebp - 0x1f4], ax
lea eax, [ebp - 0x1f2]
movdqu xmm0, xmmword [0x427260]
push eax
movdqu xmmword [ebp - 0x20c], xmm0
movq xmm0, qword [0x427270]
movq qword [ebp - 0x1fc], xmm0
call fcn.00413440
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
add esp, 0xc
push 0x427304
push eax
call esi
push dword [ebp - 0x23c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
lea eax, [ebp - 0x21c]
push 0x2e
push eax
call esi
test eax, eax
je 0x409c3a
push 0x2e
lea eax, [ebp - 0x21c]
push eax
call esi
mov ecx, 0x5f
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x240], esi
test esi, esi
je 0x409c7b
push 0
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x409c82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x409dd1
mov eax, dword [ebx + 0x14]
push dword [eax + 0xbc]
push dword [ebx + 0xc]
push edi
call fcn.004134d0
mov eax, 0x7918
mov dword [edi + 0xa8], 0
mov word [edi + 0xa6], ax
add esp, 0xc
mov eax, dword [edi + 0xbc]
mov dword [edi + 0xc0], eax
mov dword [edi + 0xac], 0
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc0]
shr eax, 0x14
add eax, 2
cmp dword [ebx + 0x168], 1
jne 0x409ce4
mov word [edi + 0xba], ax
jmp 0x409ceb
mov word [edi + 0xc6], ax
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp - 0x238]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401b30
push edi
push dword [ebx]
mov ecx, ebx
call fcn.0040b810
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x409d78
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x409db8
push 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push ecx
push dword [edi + 0xc0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x240]
call esi
cmp dword [ebp - 0x224], 0x10
jb 0x409dcf
push dword [ebp - 0x238]
call fcn.00412421
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret 4