Function at 0x425d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov edx, dword [0x429cb0]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
test edx, edx
je 0x4262e2
mov ebx, 0xffffffff
lea edx, [ebx + 1]
cmp edx, 1
ja 0x425d50
cmp dword [0x42ea60], 1
mov ecx, 1
mov dword [0x429cb0], ecx
je 0x4262c1
xor ebx, ebx
mov eax, dword [0x42dde0]
test eax, eax
je 0x425dd0
mov esi, dword [0x429ab0]
test esi, esi
jne 0x426290
cmp ebx, 0x7d
jg 0x425ec0
cmp ebx, 0x7b
jge 0x425e20
cmp ebx, 0x2f
jg 0x425e98
cmp ebx, 0x28
jge 0x425e20
cmp ebx, 0xa
je 0x425e4c
cmp ebx, 0xa
jg 0x425e09
test ebx, ebx
je 0x425dde
lea esi, [esi]
mov dword [esp + 8], ebx
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [0x42fdf0]
mov dword [esp + 4], 0x425ca0
add edx, 0x40
mov dword [esp + 0xc], ecx
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
mov esi, esi
lea edi, [edi]
mov eax, ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
add esp, 0x1c
ret
mov dword [esp + 8], 0xb
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 1
mov dword [esp], 0x425cc5
add esi, 0x40
mov dword [esp + 0xc], esi
call sub.msvcrt.dll_fwrite
jmp 0x425dd0
cmp ebx, 0x22
je 0x425e20
cmp ebx, 0x24
jne 0x425da0
lea esi, [esi]
lea edi, [edi]
mov edx, dword [sym.imp.msvcrt.dll__iob]
lea ecx, [edx + 0x40]
mov esi, dword [ecx + 4]
dec esi
test esi, esi
mov dword [ecx + 4], esi
js 0x425e3e
mov ecx, dword [edx + 0x40]
mov byte [ecx], bl
inc dword [edx + 0x40]
jmp 0x425dd0
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.msvcrt.dll__flsbuf
jmp 0x425dd0
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea edx, [ecx + 0x40]
mov esi, dword [edx + 4]
dec esi
test esi, esi
mov dword [edx + 4], esi
js 0x425e86
mov edx, dword [ecx + 0x40]
mov byte [edx], 0xa
inc dword [ecx + 0x40]
cmp dword [0x42ea60], 2
jne 0x425dd0
mov ecx, 1
mov dword [0x429ab0], ecx
jmp 0x425dd0
mov dword [esp + 4], edx
mov dword [esp], 0xa
call sub.msvcrt.dll__flsbuf
jmp 0x425e69
cmp ebx, 0x3f
jg 0x425eae
cmp ebx, 0x3e
jge 0x425e20
cmp ebx, 0x3c
jmp 0x425e11
lea ecx, [ebx - 0x5b]
cmp ecx, 3
ja 0x425da0
jmp 0x425e20
cmp ebx, 0x108
je 0x426272
cmp ebx, 0x108
jg 0x4261e1
cmp ebx, 0x104
je 0x4261b3
cmp ebx, 0x104
jg 0x426143
cmp ebx, 0x102
je 0x425f2c
cmp ebx, 0x103
jne 0x425da0
mov dword [esp + 4], 0x425cd1
mov ecx, dword [0x42fdf0]
mov dword [esp + 8], ecx
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x40
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
jmp 0x425dd0
mov ecx, dword [0x42fdf0]
lea eax, [ecx - 0x22]
mov edx, ecx
cmp eax, 0x5b
ja case.0x425f40.35
jmp dword [eax*4 + 0x425f48]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x425cd4
jmp 0x425f16
cmp edx, 0x7f
jg 0x4260f3
mov esi, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [esi], 1
je 0x426131
mov dword [esp + 4], 0x157
mov dword [esp], edx
call sub.msvcrt.dll__isctype
mov ecx, dword [0x42fdf0]
test eax, eax
jne 0x426104
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x425cd8
jmp 0x425f16
mov esi, dword [sym.imp.msvcrt.dll__iob]
lea edx, [esi + 0x40]
mov eax, dword [edx + 4]
dec eax
test eax, eax
mov dword [edx + 4], eax
js 0x426125
mov edx, dword [esi + 0x40]
mov byte [edx], cl
inc dword [esi + 0x40]
jmp 0x425dd0
mov dword [esp + 4], edx
mov dword [esp], ecx
jmp 0x425e45
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov esi, dword [eax]
movzx eax, word [esi + edx*2]
and eax, 0x157
jmp 0x4260ef
cmp ebx, 0x106
je 0x426191
cmp ebx, 0x106
jg 0x42617c
mov dword [esp + 8], 2
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 1
mov dword [esp], 0x425cde
add ecx, 0x40
mov dword [esp + 0xc], ecx
jmp 0x425e02
mov dword [esp + 8], 0x42b4a0
mov dword [esp + 4], 0x425ce1
jmp 0x425f16
mov dword [esp + 8], 2
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 1
mov dword [esp], 0x425ce6
jmp 0x425dfb
mov dword [esp + 8], 3
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 1
mov dword [esp], 0x425ce9
add edx, 0x40
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fwrite
jmp 0x425e69
cmp ebx, 0x10c
jg 0x426261
cmp ebx, 0x10b
jge 0x426241
cmp ebx, 0x109
je 0x426218
cmp ebx, 0x10a
jne 0x425da0
mov dword [esp + 4], 0x425ced
mov ecx, dword [0x42fe40]
jmp 0x425f12
mov dword [esp + 8], 7
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 1
mov dword [esp], 0x425cf1
add edx, 0x40
mov dword [esp + 0xc], edx
jmp 0x425e02
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [0x42fe40]
add ecx, 0x40
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_fputs
jmp 0x425dd0
lea edx, [ebx - 0x10e]
cmp edx, 0xb
ja 0x425da0
jmp 0x426241
mov dword [esp + 4], 0x425cf9
mov esi, dword [0x42fdf0]
mov dword [esp + 8], esi
jmp 0x425f16
mov dword [esp + 4], 0x425cfe
mov esi, dword [0x42e270]
mov edx, dword [sym.imp.msvcrt.dll__iob]
inc esi
add edx, 0x40
mov dword [esp + 8], esi
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
xor ecx, ecx
mov dword [0x429ab0], ecx
jmp 0x425d67
mov dword [esp], 0x425d02
mov ebx, 2
call fcn.004127b0
mov dword [0x42ea60], ebx
mov ebx, 0x104
jmp 0x425d50
call fcn.00417040
mov ebx, eax
jmp 0x425d2e