Function at 0x426e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov eax, dword [edi]
cmp eax, edi
je 0x426f30
mov ecx, dword [eax + 0x10]
lea edx, [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426ec0
sub ecx, esi
lea eax, [edx + 8]
mov esi, dword [eax]
add ebx, 4
sar ecx, 1
add ebx, ecx
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x426f23
mov eax, dword [esi + 0xc]
lea edx, [esi]
mov esi, dword [esi]
xor ecx, ecx
test eax, eax
je 0x426f19
mov edx, dword [edx + 8]
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x426ef3
sub edx, edi
lea edi, [eax + 2]
sar edx, 1
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426f05
sub eax, edi
lea ecx, [edx + 3]
sar eax, 1
add ecx, eax
add ebx, ecx
cmp esi, dword [ebp - 0x14]
jne 0x426ee0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add ebx, 2
cmp eax, edi
jne 0x426eb0
mov dword [ebp - 0x14], ebx
xor ecx, ecx
lea esi, [ebx + 2]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c71b1
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x426f64
pop edi
pop esi
lea eax, [ecx + 8]
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + esi*2]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
cmp eax, edi
je 0x426ff4
mov ebx, dword [ebp - 0x18]
push dword [eax + 0x10]
lea esi, [eax]
mov eax, dword [eax]
push str.__s__r_n
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push 0
push 0
push eax
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
call fcn.0040e3c0
lea edi, [esi + 8]
add esp, 0x1c
mov esi, dword [edi]
cmp esi, edi
je 0x426fda
mov ecx, dword [esi + 0xc]
lea eax, [esi]
mov esi, dword [esi]
test ecx, ecx
je 0x426fd6
push ecx
push dword [eax + 8]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 8]
push str._s_s_r_n
push 0
push 0
push eax
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
call fcn.0040e3c0
add esp, 0x20
cmp esi, edi
jne 0x426fa7
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [ecx], 0xa000d
add ecx, 4
mov dword [ebp - 8], ecx
cmp eax, dword [ebp - 0x10]
jne 0x426f77
mov ebx, dword [ebp - 0x14]
lea edi, [ebx + ebx]
lea eax, [edi + 3]
push eax
mov dword [ebp - 0x14], eax
call fcn.004c71b1
mov esi, eax
add esp, 4
test esi, esi
je case.default.0x427017
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
cmp eax, 3
ja case.default.0x427017
jmp dword [eax*4 + 0x427118]
push 0
push 0
push dword [ebp - 0x14]
push esi
push ebx
push dword [ebp - 4]
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4270ef
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4270f7
push 0
push 0
push dword [ebp - 0x14]
lea eax, [esi + 3]
push eax
push ebx
mov ebx, dword [ebp - 4]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add eax, 3
mov word [esi], 0xbbef
mov dword [ebp - 0xc], eax
mov byte [esi + 2], 0xbf
jmp 0x42703d
mov ebx, dword [ebp - 4]
lea ecx, [esi + 2]
push edi
mov edx, ebx
call fcn.004269d0
lea eax, [edi + 2]
mov word [esi], 0xfffe
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x42703d
mov ebx, dword [ebp - 4]
lea eax, [esi + 2]
push edi
push ebx
push eax
call fcn.004c97a0
lea eax, [edi + 2]
mov word [esi], 0xfeff
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x42703d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, ebx
je 0x427104
push esi
call fcn.004c716b
add esp, 4
push 2
push ebx
call fcn.004c71a3
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret