Function at 0x4270c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x455c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
movsx eax, al
xor ebx, ebx
add eax, 0xffffffa8
mov dword [ebp - 0x48], str.0123456789abcdef
mov dword [ebp - 0x54], 0
push esi
mov esi, dword [ebp + 0x2c]
mov dword [ebp - 0x58], esi
cmp eax, 0x20
ja case.0x427101.89
movzx eax, byte [eax + 0x4272e0]
jmp dword [eax*4 + 0x4272c8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], 0xa
test edx, edx
jg 0x42712f
jl 0x42711f
test ebx, ebx
jae 0x42712f
neg ebx
mov dword [ebp - 0x54], 0x2d
adc edx, 0
neg edx
jmp 0x427164
cmp dword [ebp + 0x14], 0
je 0x427164
mov dword [ebp - 0x54], 0x2b
jmp 0x427164
mov dword [ebp - 0x4c], 8
jmp 0x42715e
mov dword [ebp - 0x4c], 0xa
jmp 0x42715e
mov dword [ebp - 0x48], str.0123456789ABCDEF
mov dword [ebp - 0x4c], 0x10
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, ebx
or eax, edx
push edi
jne 0x42717b
cmp dword [ebp + 0x28], eax
je 0x42717b
mov edi, dword [ebp + 0x24]
test edi, edi
jne 0x42717b
xor ebx, ebx
jmp 0x4271ac
mov edi, dword [ebp - 0x4c]
xor esi, esi
push 0
push edi
push edx
push ebx
call fcn.0042a790
mov dword [ebp - 0x4c], ebx
mov ebx, eax
mov eax, dword [ebp - 0x48]
mov cl, byte [ecx + eax]
mov byte [ebp + esi - 0x44], cl
mov ecx, ebx
inc esi
or ecx, edx
jne 0x427180
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x48]
sub edi, ebx
mov eax, 0
mov ecx, 0
cmovs edi, eax
mov eax, dword [ebp + 0x1c]
sub eax, edi
sub eax, ebx
cmovs eax, ecx
mov dword [ebp - 0x4c], eax
cmp dword [ebp + 0x18], ecx
je 0x4271d2
neg eax
mov dword [ebp - 0x4c], eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x20]
call fcn.00427780
add esp, 0x10
test edi, edi
jle 0x427248
lea ebx, [ebx]
mov eax, dword [esi + 8]
dec edi
mov dword [ebp + 0x24], edi
test eax, eax
je 0x427238
mov edi, dword [esi]
cmp edi, eax
jb 0x427235
mov eax, dword [esi + 0xc]
test eax, eax
je 0x427241
mov ecx, dword [esi + 4]
sub edi, ecx
cmp byte [esi + 0x14], 0
jne 0x427230
test edi, edi
je 0x427230
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add dword [esi + 0x10], eax
add esp, 0x10
cmp eax, edi
je 0x427230
mov byte [esi + 0x14], 1
mov eax, dword [esi + 4]
mov dword [esi], eax
mov edi, dword [ebp + 0x24]
mov eax, dword [esi]
mov byte [eax], 0x30
inc dword [esi]
jmp 0x427244
mov edi, dword [ebp + 0x24]
test edi, edi
jg 0x4271f0
test ebx, ebx
jle 0x4272a7
lea esp, [esp]
movsx edx, byte [ebp + ebx - 0x45]
dec ebx
mov eax, dword [esi + 8]
mov dword [ebp - 0x48], edx
test eax, eax
je 0x42729d
mov edi, dword [esi]
cmp edi, eax
jb 0x42729d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4272a3
mov ecx, dword [esi + 4]
sub edi, ecx
cmp byte [esi + 0x14], 0
jne 0x427298
test edi, edi
je 0x427298
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add dword [esi + 0x10], eax
add esp, 0x10
mov edx, dword [ebp - 0x48]
cmp eax, edi
je 0x427298
mov byte [esi + 0x14], 1
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
test ebx, ebx
jg 0x427250
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004278d0
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00429e54
mov esp, ebp
pop ebp
ret