Function at 0x420200
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 0x42022b
push edx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x42023a
mov edi, eax
cmp eax, 0xffffffff
jne 0x420257
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42023f
mov dword [esi + 4], 0
mov dword [esi], 0
jmp 0x42024f
mov eax, 6
mov dword [esi + 4], 0
mov dword [esi + 8], eax
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 0x4202cb
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
movzx eax, byte [eax + 4]
test eax, eax
je 0x4202f0
cmp al, 4
jae 0x420453
mov cl, byte [ebp]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x420347
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 + 0x43e1be]
cmp bl, cl
mov dword [esp + 0x28], ebx
jbe 0x420397
mov dword [esi + 4], 1
jmp 0x420232
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 0x420362
mov ecx, dword [esp + 0x10]
xor eax, eax
xor edx, edx
jmp 0x42036f
cmp ebx, 0x1000
mov eax, 0x1000
lea ecx, [esp + 4]
mov edx, ebp
cmovb eax, ebx
push eax
call fcn.00407730
add esp, 4
cmp dword [esp + 4], 1
jne 0x42037c
cmp dword [esp + 8], 0
je 0x4203f6
mov eax, dword [esp + 8]
cmp eax, ebx
ja 0x420499
lea ebx, [esp + 0x10]
mov edx, ebp
mov ecx, ebx
push eax
call fcn.00407730
add esp, 4
mov ecx, ebx
call fcn.004207a0
mov ebx, edx
jmp 0x420384
mov eax, dword [esp + 0x4c]
mov byte [eax + 4], 0
mov dword [esi + 8], 0x43e6c0
mov dword [esi + 4], 0x1502
jmp 0x420249
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 0x42024f
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, esi
mov edx, edi
push ebx
push eax
call fcn.004204f0
add esp, 8
jmp 0x42024f
movzx eax, cl
cmp cl, 5
jae 0x42048b
lea ecx, [esp + 4]
mov edx, ebp
push eax
call fcn.00407730
add esp, 4
cmp dword [esp + 4], 1
mov byte [ebp + 4], 0
je 0x42034f
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
cmp ecx, ebx
mov dword [esp], ecx
jne 0x4204ac
lea ebp, [esp + 0x10]
mov edx, edi
mov ecx, ebp
push ebx
push eax
call fcn.004204f0
add esp, 8
cmp dword [esp + 0x10], 1
jne 0x420416
movsd xmm0, qword [esp + 0x14]
movsd qword [esi + 4], xmm0
jmp 0x420447
movzx eax, byte [ebp]
movzx ecx, byte [eax + 0x43e1be]
cmp ecx, 2
jb 0x420439
cmp ecx, ebx
jbe 0x420439
mov ecx, dword [esp + 0x4c]
mov byte [ecx], al
mov byte [ecx + 4], 1
jmp 0x420429
mov eax, dword [esp + 0x14]
mov dword [esp], ebx
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x4204c6
xor eax, eax
mov dword [esi + 4], 1
mov dword [esi], eax
jmp 0x42024f
mov dword [esi + 8], 0x43e6c0
mov dword [esi + 4], 0x1502
mov eax, 1
mov dword [esi], eax
jmp 0x42024f
lea ecx, [esp + 0x10]
mov edx, 0x43e660
mov dword [esp + 0x10], 0x43e658
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], str.version_srclib.rsversionCouldnt_load_version.dll:
mov dword [esp + 0x24], 0
call fcn.00437df0
ud2
mov ecx, eax
mov edx, 4
push 0x43e6c8
jmp 0x4204a2
mov ecx, eax
mov edx, ebx
push 0x43e6f8
call fcn.00437e90
add esp, 4
ud2
lea ecx, [esp + 0x28]
mov edx, esp
mov dword [esp + 0x10], 0
push 0x43e6d8
lea eax, [esp + 0x14]
push eax
jmp 0x4204da
lea ecx, [esp + 0x2c]
mov edx, esp
mov dword [esp + 0x10], 0
push 0x43e6e8
push ebp
call fcn.004389d0
add esp, 8
ud2