Function at 0x4290c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [esp + 0x90]
lea edx, [esp + 0x48]
mov eax, ebx
call fcn.00427870
test eax, eax
je 0x4293ad
mov edi, dword [esp + 0x98]
test edi, edi
je 0x42945a
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x28], 0
lea ebp, [eax - 1]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
sub eax, 1
test ecx, ecx
mov dword [esp + 0x20], 0
cmove eax, ebp
cmovne ebx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], eax
jmp 0x42916c
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0xa0]
mov byte [edi + eax], 0
add eax, 1
mov dword [esp + 0x28], eax
add dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x98], eax
je 0x42936e
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x94]
movzx edi, byte [edi + eax*2 + 1]
movzx eax, byte [esi + eax*2]
shl edi, 8
or di, ax
je 0x429140
mov eax, dword [esp + 0x34]
xor esi, esi
mov ecx, dword [esp + 0x30]
xor edx, edx
mov word [esp + 0x2e], si
mov dword [esp + 0x18], eax
mov ebx, eax
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
lea esi, [ecx + eax*4]
cmp word [esi], di
jbe 0x4291e7
lea ebx, [eax - 1]
test eax, eax
je 0x4291c1
cmp edx, ebx
jbe 0x4291a6
cmp dword [esp + 0x1c], ecx
jne 0x42927e
mov ebx, ebp
xor edx, edx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
lea esi, [ecx + eax*4]
cmp word [esi], di
ja 0x4291b6
jae 0x4291f4
lea edx, [eax + 1]
cmp dword [esp + 0x18], eax
ja 0x4291bd
jmp 0x4291c1
movzx eax, word [esi + 2]
cmp dword [esp + 0x1c], ecx
je 0x429274
cmp word [esp + 0x2e], 0
sete dl
test ax, ax
je 0x4292d0
test dl, dl
je 0x4292d0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x42922c
cmp di, 0x1f
jbe 0x429290
cmp di, 0x7f
je 0x429290
test ax, 0xff00
je 0x4292ee
mov ebx, dword [esp + 0x28]
lea edx, [ebx + 1]
cmp edx, dword [esp + 0xa4]
jae 0x429426
mov ecx, eax
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x28]
shr cx, 8
mov byte [ebx + esi], cl
lea edi, [edx + 1]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0xa0]
mov byte [edi + edx], al
jmp 0x429156
mov word [esp + 0x2e], ax
jmp 0x4291cb
cmp word [esp + 0x2e], 0
jne 0x4292df
lea esi, [esi]
lea edi, [edi]
lea eax, [edi + 0xd00]
cmp ax, 0xff
ja 0x429310
mov eax, dword [esp + 0x28]
cmp dword [esp + 0xa4], eax
jbe 0x429396
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0xa0]
mov eax, edi
mov byte [ecx + esi], al
lea eax, [esi + 1]
mov dword [esp + 0x28], eax
jmp 0x429156
movzx ecx, word [esp + 0x2e]
or cx, ax
je 0x429290
test ax, ax
jne 0x429358
movzx eax, word [esp + 0x2e]
test ax, 0xff00
jne 0x429236
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0xa4], ecx
jbe 0x429436
mov edx, dword [esp + 0x28]
jmp 0x42925e
mov edx, dword [esp + 0x9c]
test edx, edx
je 0x429446
mov eax, dword [esp + 0x28]
cmp dword [esp + 0xa4], eax
jbe 0x429396
mov eax, dword [esp + 0x9c]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x3c], 1
mov ebx, dword [esp + 0xa0]
movzx eax, byte [eax]
mov byte [ebx + edi], al
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
jmp 0x429156
cmp ax, di
jne 0x42922c
test dl, dl
cmove ax, word [esp + 0x2e]
jmp 0x42922c
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x28]
mov dword [eax], esi
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, 0
cmove eax, dword [esp + 0xa0]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x28]
mov dword [eax], esi
add esp, 0x7c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
call esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4b8d00
mov dword [esp + 4], str.__s__Unsupported_code_page:__d
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b8d27
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0xa8]
mov dword [eax], 0
xor eax, eax
jmp 0x42938e
mov eax, dword [esp + 0xa8]
mov dword [eax], ebx
xor eax, eax
jmp 0x42938e
mov eax, dword [esp + 0xa8]
mov dword [eax], ecx
xor eax, eax
jmp 0x42938e
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x28]
mov dword [eax], edi
xor eax, eax
jmp 0x42938e
mov eax, dword [esp + 0xa8]
mov dword [eax], 0
mov eax, dword [esp + 0xa0]
jmp 0x42938e