Function at 0x426a70
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x48]
mov esi, ecx
test ebx, ebx
je 0x426a9b
push edx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x426aaa
mov edi, eax
cmp eax, 0xffffffff
jne 0x426ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x426aaf
mov dword [esi + 4], 0
mov dword [esi], 0
jmp 0x426abf
mov eax, 6
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 1
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebp, [esp + 0x10]
mov dword [esp + 0x10], 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x426b3b
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
movzx eax, byte [eax + 4]
test eax, eax
je 0x426b60
cmp al, 4
jae 0x426cc3
mov cl, byte [ebp]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x426bb7
mov ebp, dword [esp + 0x4c]
mov byte [ebp + eax], cl
mov cl, byte [ebp + 4]
inc cl
mov byte [ebp + 4], cl
movzx eax, byte [ebp]
movzx ebx, byte [eax + 0x43dfc0]
cmp bl, cl
mov dword [esp + 0x28], ebx
jbe 0x426c07
mov dword [esi + 4], 1
jmp 0x426aa2
mov dword [esp + 0x10], 0
push 0
push ebp
push ebx
push dword [esp + 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426bd2
mov ecx, dword [esp + 0x10]
xor eax, eax
xor edx, edx
jmp 0x426bdf
cmp ebx, 0x1000
mov eax, 0x1000
lea ecx, [esp + 4]
mov edx, ebp
cmovb eax, ebx
push eax
call fcn.00414ce0
add esp, 4
cmp dword [esp + 4], 1
jne 0x426bec
cmp dword [esp + 8], 0
je 0x426c66
mov eax, dword [esp + 8]
cmp eax, ebx
ja 0x426d09
lea ebx, [esp + 0x10]
mov edx, ebp
mov ecx, ebx
push eax
call fcn.00414ce0
add esp, 4
mov ecx, ebx
call fcn.00427010
mov ebx, edx
jmp 0x426bf4
mov eax, dword [esp + 0x4c]
mov byte [eax + 4], 0
mov dword [esi + 8], 0x43f8b8
mov dword [esi + 4], 2
jmp 0x426ab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov edx, 1
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jmp 0x426abf
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, esi
mov edx, edi
push ebx
push eax
call fcn.00426d60
add esp, 8
jmp 0x426abf
movzx eax, cl
cmp cl, 5
jae 0x426cfb
lea ecx, [esp + 4]
mov edx, ebp
push eax
call fcn.00414ce0
add esp, 4
cmp dword [esp + 4], 1
mov byte [ebp + 4], 0
je 0x426bbf
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
cmp ecx, ebx
mov dword [esp], ecx
jne 0x426d1c
lea ebp, [esp + 0x10]
mov edx, edi
mov ecx, ebp
push ebx
push eax
call fcn.00426d60
add esp, 8
cmp dword [esp + 0x10], 1
jne 0x426c86
movsd xmm0, qword [esp + 0x14]
movsd qword [esi + 4], xmm0
jmp 0x426cb7
movzx eax, byte [ebp]
movzx ecx, byte [eax + 0x43dfc0]
cmp ecx, 2
jb 0x426ca9
cmp ecx, ebx
jbe 0x426ca9
mov ecx, dword [esp + 0x4c]
mov byte [ecx], al
mov byte [ecx + 4], 1
jmp 0x426c99
mov eax, dword [esp + 0x14]
mov dword [esp], ebx
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x426d36
xor eax, eax
mov dword [esi + 4], 1
mov dword [esi], eax
jmp 0x426abf
mov dword [esi + 8], 0x43f8b8
mov dword [esi + 4], 2
mov eax, 1
mov dword [esi], eax
jmp 0x426abf
lea ecx, [esp + 0x10]
mov edx, 0x43f858
mov dword [esp + 0x10], 0x43f850
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x43fca8
mov dword [esp + 0x24], 0
call fcn.00436290
ud2
mov ecx, eax
mov edx, 4
push 0x43f8c4
jmp 0x426d12
mov ecx, eax
mov edx, ebx
push 0x43f8f4
call fcn.00436330
add esp, 4
ud2
lea ecx, [esp + 0x28]
mov edx, esp
mov dword [esp + 0x10], 0
push 0x43f8d4
lea eax, [esp + 0x14]
push eax
jmp 0x426d4a
lea ecx, [esp + 0x2c]
mov edx, esp
mov dword [esp + 0x10], 0
push 0x43f8e4
push ebp
call fcn.00437050
add esp, 8
ud2