Function at 0x41aa10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
cmp eax, edi
jge 0x41ade8
mov dword [ebp - 0x1c], 0xfc00
mov dword [ebp - 0x20], 0xd800
cmp byte [ebx + 0x39bc], 0
mov eax, 0xfeff
je 0x41aaaf
cmp word [ebx + 0x39b8], 6
jne 0x41aaaf
cmp byte [edx], 0
je 0x41aaaf
mov word [ebx + 0x9a1e], ax
lea ecx, [ebx + 0x9a20]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
lea edx, [eax + ebx*2]
lea eax, [esi + ebx]
cmp eax, edi
jge 0x41aaa1
mov ax, word [edx]
inc esi
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp esi, 0x800
jl 0x41aa85
mov eax, dword [ebp - 0x18]
lea ecx, [esi + 1]
mov dword [ebp - 0x10], ecx
mov byte [eax], 0
jmp 0x41aae1
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x9a1e]
mov ebx, dword [ebp + 0xc]
xor esi, esi
lea edx, [eax + ebx*2]
lea eax, [esi + ebx]
cmp eax, edi
jge 0x41aadc
mov ax, word [edx]
inc esi
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp esi, 0x800
jl 0x41aac0
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
add eax, esi
cmp eax, edi
jge 0x41ab1f
mov edx, dword [ebp + 8]
lea edx, [edx + eax*2]
mov ax, word [edx - 2]
and ax, word [ebp - 0x1c]
cmp ax, word [ebp - 0x20]
jne 0x41ab1f
movzx edx, word [edx]
mov eax, edx
and eax, 0xfc00
cmp eax, 0xdc00
jne 0x41ab1f
mov word [ebx + ecx*2 + 0x9a1e], dx
inc ecx
mov dword [ebp - 0x10], ecx
inc esi
movsx eax, word [ebx + 0x39b8]
cmp eax, 0xb
ja case.default.0x41ab2f
jmp dword [eax*4 + 0x41b1a4]
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebx + 0x9a1e]
mov dword [ebp - 8], 0
push eax
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
lea edi, [ebx + 0x3a1e]
push edi
push dword [ebp - 0x10]
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push edi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41aeda
mov edi, dword [ebp + 0x14]
jmp case.default.0x41ab2f
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea edi, [ebx + 0x3a1e]
push edi
push dword [ebp - 0x10]
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push edi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41af54
mov edi, dword [ebp + 0x14]
jmp case.default.0x41ab2f
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0xfde8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea edi, [ebx + 0x3a1e]
push edi
push dword [ebp - 0x10]
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0xfde8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push edi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41afce
mov edi, dword [ebp + 0x14]
jmp case.default.0x41ab2f
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea edi, [ebx + 0x3a1e]
push edi
push dword [ebp - 0x10]
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push edi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b048
mov edi, dword [ebp + 0x14]
jmp case.default.0x41ab2f
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x3b5
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea edi, [ebx + 0x3a1e]
push edi
push dword [ebp - 0x10]
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x3b5
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push edi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b0c2
mov edi, dword [ebp + 0x14]
jmp case.default.0x41ab2f
push dword [ebp - 0xc]
xor eax, eax
mov word [ebx + ecx*2 + 0x9a1e], ax
push ecx
mov ecx, ebx
call fcn.0041ba60
jmp 0x41adcc
push dword [ebp - 0xc]
xor eax, eax
mov word [ebx + ecx*2 + 0x9a1e], ax
push ecx
mov ecx, ebx
call fcn.0041bb20
jmp 0x41adcc
push 0
lea eax, [ebx + 0x3a0c]
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebx + 0x9a1e]
push eax
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b134
jmp case.default.0x41ab2f
push dword [ebp - 0xc]
push ecx
mov ecx, ebx
call fcn.0041bbe0
jmp 0x41adcc
push dword [ebp - 0xc]
push ecx
mov ecx, ebx
call fcn.0041bc70
jmp 0x41adcc
push dword [ebp - 0xc]
push ecx
mov ecx, ebx
call fcn.0041bd90
jmp 0x41adcc
push dword [ebp - 0xc]
push ecx
mov ecx, ebx
call fcn.0041bef0
test eax, eax
jne 0x41b18f
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jge 0x41ade8
mov edx, dword [ebp - 0x18]
jmp 0x41aa50
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x9a1e]
xor edi, edi
mov edx, ecx
lea esi, [esi + eax*2]
add eax, edi
cmp eax, dword [ebp + 0x10]
jge 0x41ae14
mov ax, word [esi]
inc edi
mov word [edx], ax
add esi, 2
mov eax, dword [ebp + 0xc]
add edx, 2
cmp edi, 2
jl 0x41adf8
test edi, edi
jle case.default.0x41ae73
movsx eax, word [ebx + 0x39ba]
sub eax, 1
je 0x41ae4c
sub eax, 1
je 0x41ae3f
sub eax, 1
jne 0x41ae63
mov eax, 0xd
mov word [ecx], ax
lea edi, [eax - 0xc]
jmp 0x41ae63
mov eax, 0xa
mov word [ecx], ax
lea edi, [eax - 9]
jmp 0x41ae63
mov eax, 0xd
mov word [ecx], ax
mov eax, 0xa
mov word [ebx + 0x9a20], ax
lea edi, [eax - 8]
movsx eax, word [ebx + 0x39b8]
cmp eax, 0xb
ja case.default.0x41ae73
jmp dword [eax*4 + 0x41b1d4]
push 0
push 0
push 0
push 0
push edi
push ecx
push 0
push 0x3a4
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
lea esi, [ebx + 0x3a1e]
push esi
push edi
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push esi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x41ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xedf
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea esi, [ebx + 0x3a1e]
push esi
push edi
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push esi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x41ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xee0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0
push 0
push 0
push edi
push ecx
push 0
push 0xfde8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea esi, [ebx + 0x3a1e]
push esi
push edi
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0xfde8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push esi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x41ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xee1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0
push 0
push 0
push edi
push ecx
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea esi, [ebx + 0x3a1e]
push esi
push edi
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push esi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x41ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xee2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0
push 0
push 0
push edi
push ecx
push 0
push 0x3b5
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea esi, [ebx + 0x3a1e]
push esi
push edi
lea eax, [ebx + 0x9a1e]
push eax
push 0
push 0x3b5
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebx + 0x3a0c]
push ecx
push eax
push esi
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x41ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xee3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0xc]
xor eax, eax
push ecx
mov ecx, ebx
mov word [ebx + edi*2 + 0x9a1e], ax
call fcn.0041ba60
jmp 0x41b189
push dword [ebp - 0xc]
xor eax, eax
push ecx
mov ecx, ebx
mov word [ebx + edi*2 + 0x9a1e], ax
call fcn.0041bb20
jmp 0x41b189
push 0
lea eax, [ebx + 0x3a0c]
push eax
lea eax, [edi + edi]
push eax
push ecx
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x41ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 0xee6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0xc]
mov ecx, ebx
push edi
call fcn.0041bbe0
jmp 0x41b189
push dword [ebp - 0xc]
mov ecx, ebx
push edi
call fcn.0041bc70
jmp 0x41b189
push dword [ebp - 0xc]
mov ecx, ebx
push edi
call fcn.0041bd90
jmp 0x41b189
push dword [ebp - 0xc]
mov ecx, ebx
push edi
call fcn.0041bef0
test eax, eax
jne 0x41b18f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x18