Function at 0x42a814
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
inc eax
cmp eax, dword [0x4667c8]
jl 0x42a8d5
mov eax, dword [0x4667c8]
add eax, 0x14
mov dword [0x4667c8], eax
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [0x467660]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [0x467660], eax
test eax, eax
jne 0x42a8a9
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x18
mov dword [esp + 4], 1
mov dword [esp], str.libfile:_Out_of_memory._n
call sub.msvcrt.dll_fwrite
mov ecx, 0xffffffff
cmp dword [ebp + 0x10], 0
jne 0x42af15
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
shl eax, 2
add eax, dword [0x467660]
mov dword [esp + 8], 0x870
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
mov edx, dword [0x467660]
lea ebx, [edx + eax*4]
mov word [ebx], 0
mov word [ebx + 2], 0
mov eax, dword [ebp + 8]
mov edx, eax
cmp byte [eax], 0x3e
jne 0x42a915
lea eax, [edx + 1]
mov dword [ebp + 8], eax
movzx eax, word [ebx + 2]
inc eax
mov word [ebx + 2], ax
mov edx, dword [ebp + 8]
cmp byte [edx], 0x3e
je 0x42a8fe
cmp word [ebx + 2], 0
je 0x42a94d
mov eax, dword [ebp + 8]
cmp byte [eax], 0x28
jne 0x42a931
inc eax
mov dword [ebp + 8], eax
movzx eax, word [ebx]
or eax, 1
mov word [ebx], ax
cmp word [ebx + 2], 0
je 0x42a94d
mov eax, dword [ebp + 8]
cmp byte [eax], 0x26
jne 0x42a94d
inc eax
mov dword [ebp + 8], eax
movzx eax, word [ebx]
or eax, 4
mov word [ebx], ax
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
test byte [ebx], 1
je 0x42aa86
mov byte [ebx + 4], 4
mov dword [ebx + 8], 0
mov eax, dword [ebp + 8]
cmp byte [eax], 0x2e
jne 0x42a9fc
inc eax
mov dword [ebp + 8], eax
movzx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42a9ad
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 1
jmp 0x42a9bd
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
je 0x42a9d4
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [esp], eax
call sub.msvcrt.dll_tolower
sub eax, 0x62
jmp 0x42a9dd
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
sub eax, 0x62
cmp eax, 0x11
ja case.0x42a9e2.100
jmp dword [eax*4 + 0x453c1c]
mov byte [ebx + 4], 4
jmp case.0x42a9e2.100
mov byte [ebx + 4], 2
jmp case.0x42a9e2.100
mov byte [ebx + 4], 1
inc dword [ebp + 8]
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
cmp al, 0x2b
sete dl
cmp al, 0x2d
sete al
or eax, edx
test al, 1
je 0x42aa18
lea eax, [esi + 1]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42aa38
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 4
jmp 0x42aa48
mov dword [esp + 4], 4
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
je 0x42aa75
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [ebx + 8], eax
cmp byte [esi], 0x2d
jne 0x42aa7b
neg eax
mov dword [ebx + 8], eax
jmp 0x42aa7b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
jmp 0x42aa86
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [esp], eax
call fcn.0042f3f0
test eax, eax
je 0x42aad1
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42aab8
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 4
jmp 0x42aac8
mov dword [esp + 4], 4
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x42aa83
jmp 0x42aad1
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [esp], eax
call fcn.0042f3f0
test eax, eax
je 0x42ab17
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42ab03
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
jmp 0x42ab13
mov dword [esp + 4], 8
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x42aace
mov eax, dword [ebp + 8]
cmp byte [eax], 0x75
jne 0x42ab2c
inc eax
mov dword [ebp + 8], eax
movzx eax, word [ebx]
or eax, 2
mov word [ebx], ax
mov esi, dword [ebp + 8]
mov edi, str.byte
mov ecx, 4
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42ab53
mov byte [ebx + 0x11], 1
add dword [ebp + 8], 4
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.short
mov ecx, 5
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42ab7a
mov byte [ebx + 0x11], 2
add dword [ebp + 8], 5
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.long
mov ecx, 4
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42aba1
mov byte [ebx + 0x11], 4
add dword [ebp + 8], 4
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.string
mov ecx, 6
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42abc8
mov byte [ebx + 0x11], 5
add dword [ebp + 8], 6
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.date
mov ecx, 4
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42abef
mov byte [ebx + 0x11], 6
add dword [ebp + 8], 4
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.beshort
mov ecx, 7
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42ac16
mov byte [ebx + 0x11], 7
add dword [ebp + 8], 7
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.belong
mov ecx, 6
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42ac3d
mov byte [ebx + 0x11], 8
add dword [ebp + 8], 6
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.bedate
mov ecx, 6
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42ac61
mov byte [ebx + 0x11], 9
add dword [ebp + 8], 6
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.leshort
mov ecx, 7
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42ac85
mov byte [ebx + 0x11], 0xa
add dword [ebp + 8], 7
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.lelong
mov ecx, 6
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x42aca9
mov byte [ebx + 0x11], 0xb
add dword [ebp + 8], 6
jmp 0x42acd4
mov esi, dword [ebp + 8]
mov edi, str.ledate
mov ecx, 6
cld
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
mov ecx, 0xffffffff
cmp dl, al
jne 0x42af15
mov byte [ebx + 0x11], 0xc
add dword [ebp + 8], 6
mov eax, dword [ebp + 8]
cmp byte [eax], 0x26
jne 0x42ad16
inc eax
mov dword [ebp + 8], eax
mov dword [esp + 8], 0
lea eax, [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042a7cf
mov dword [ebx + 0x34], eax
lea edx, [ebp + 8]
mov dword [esp], edx
call fcn.0042b303
jmp 0x42ad22
mov dword [ebx + 0x34], 0xffffffff
jmp 0x42ad22
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [esp], eax
call fcn.0042f3f0
test eax, eax
je 0x42ad68
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42ad54
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
jmp 0x42ad64
mov dword [esp + 4], 8
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x42ad1f
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x3e
jg 0x42ad84
cmp eax, 0x3c
jge 0x42ad89
cmp eax, 0x21
je 0x42ad97
cmp eax, 0x26
je 0x42ad89
jmp 0x42adab
cmp eax, 0x5e
jne 0x42adab
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov byte [ebx + 0x10], al
inc dword [ebp + 8]
jmp 0x42ae0f
cmp byte [ebx + 0x11], 5
je 0x42adab
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov byte [ebx + 0x10], al
inc dword [ebp + 8]
jmp 0x42ae0f
mov eax, dword [ebp + 8]
cmp byte [eax], 0x78
jne 0x42ae06
movzx eax, byte [eax + 1]
mov dword [esp], eax
call fcn.0042f3f0
test eax, eax
je 0x42ae06
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 1]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42ade4
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
jmp 0x42adf4
mov dword [esp + 4], 8
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
je 0x42ae06
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov byte [ebx + 0x10], al
inc dword [ebp + 8]
jmp 0x42ae76
mov byte [ebx + 0x10], 0x3d
jmp 0x42ae0f
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [esp], eax
call fcn.0042f3f0
test eax, eax
je 0x42ae55
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42ae41
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
jmp 0x42ae51
mov dword [esp + 4], 8
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x42ae0c
lea eax, [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042af1f
mov ecx, 0xffffffff
test eax, eax
jne 0x42af15
jmp 0x42ae76
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [esp], eax
call fcn.0042f3f0
test eax, eax
je 0x42aebc
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x42aea8
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
jmp 0x42aeb8
mov dword [esp + 4], 8
mov dword [esp], edx
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x42ae73
mov eax, dword [ebp + 8]
cmp byte [eax], 8
jne 0x42aece
inc eax
mov dword [ebp + 8], eax
mov byte [ebx + 0x38], 1
jmp 0x42aeed
mov eax, dword [ebp + 8]
cmp byte [eax], 0x5c
jne 0x42aee9
cmp byte [eax + 1], 0x62
jne 0x42aee9
inc eax
mov dword [ebp + 8], eax
inc dword [ebp + 8]
mov byte [ebx + 0x38], 1
jmp 0x42aeed
mov byte [ebx + 0x38], 0
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov byte [ebx + eax + 0x39], dl
inc eax
mov dword [ebp - 0x14], eax
test dl, dl
je 0x42af0b
cmp eax, 0x31
jle 0x42aeed
mov edx, dword [ebp + 0xc]
inc dword [edx]
mov ecx, 0
mov eax, ecx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret