Function at 0x70366b97
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
inc eax
xor edi, edi
cmp dword [0x703bde40], edi
mov dword [ebx], eax
je case.0x70366d6b.56
cmp dword [0x703d20e8], edi
mov dword [0x703bde40], edi
jne 0x70366bc6
mov dword [0x703d20e8], eax
cmp dword [0x703d20ec], edi
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
jne 0x70366bdb
call esi
mov dword [0x703d20ec], eax
cmp dword [0x703d20f0], edi
jne 0x70366bed
call esi
add eax, 0x20
mov dword [0x703d20f0], eax
cmp dword [0x703d20e0], edi
jne 0x70366c15
push 0x4000
push dword [0x703d20ec]
call fcn.703669b9
cmp eax, edi
mov dword [0x703d20e0], eax
jne 0x70366c15
mov dword [ebx], edi
jmp case.0x70366d6b.64
call fcn.70366863
mov ecx, dword [0x703d20e4]
mov al, byte [0x703d20dc]
mov byte [ecx], al
mov eax, dword [0x703d20e8]
mov esi, ecx
mov dword [0x703c20c8], eax
mov dword [0x703c20c4], 0x703c20cc
movzx edx, byte [esi]
mov dl, byte [edx*4 + 0x70309390]
mov byte [ebp - 1], dl
movzx edx, dl
jmp 0x70366c6b
movsx eax, word [edi + 0x703099f0]
cmp eax, 0xdf
jl 0x70366c67
mov dl, byte [edx*4 + 0x70309790]
mov byte [ebp - 1], dl
movzx edx, byte [ebp - 1]
lea edi, [eax + eax]
movsx ebx, word [edi + 0x70309820]
add ebx, edx
movsx ebx, word [ebx*2 + 0x70309df8]
cmp ebx, eax
jne 0x70366c4f
movsx eax, word [eax*2 + 0x70309820]
movzx edx, byte [ebp - 1]
add eax, edx
movsx eax, word [eax*2 + 0x70309bc0]
mov edx, dword [0x703c20c4]
add dword [0x703c20c4], 4
inc esi
cmp eax, 0xde
mov dword [edx], eax
jne 0x70366c3d
mov ebx, dword [0x703d20e0]
mov edi, dword [0x703c20c4]
sub edi, 4
mov eax, dword [edi]
lea edx, [eax + eax]
movsx eax, word [edx + 0x703091d0]
mov dword [0x703c20c4], edi
mov dword [0x703c20bc], eax
test eax, eax
je 0x70366ce5
movsx edx, word [edx + 0x703091d2]
cmp eax, edx
jl 0x70366cf7
dec esi
sub edi, 4
mov eax, dword [edi]
lea edx, [eax + eax]
movsx eax, word [edx + 0x703091d0]
jmp 0x70366cd6
mov edx, esi
sub edx, ecx
mov dword [0x703c20bc], eax
movsx eax, word [eax*2 + 0x70308f68]
cmp eax, 0x3f
mov dword [0x703c20b8], ecx
mov dword [0x703d20d4], edx
mov cl, byte [esi]
mov byte [0x703d20dc], cl
mov byte [esi], 0
mov ecx, dword [0x703c20b8]
mov dword [0x703c20c4], edi
mov dword [0x703c20c0], esi
mov dword [0x703d20e4], esi
je 0x70366d61
mov edx, dword [0x703d20d4]
and dword [ebp - 8], 0
test edx, edx
jle 0x70366d61
mov edi, dword [ebp - 8]
cmp byte [ecx + edi], 0xa
jne 0x70366d59
inc dword [0x703bde44]
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
jl 0x70366d4a
dec eax
cmp eax, 0x41
ja case.default.0x70366d6b
jmp dword [eax*4 + 0x70367133]
mov al, byte [0x703d20dc]
mov edi, esi
sub edi, ecx
dec edi
mov byte [esi], al
cmp dword [ebx + 0x24], 0
jne 0x70366d9a
mov eax, dword [ebx + 0x10]
mov dword [0x703d20d8], eax
mov eax, dword [0x703d20ec]
mov dword [ebx], eax
mov dword [ebx + 0x24], 1
mov eax, dword [ebx + 4]
add eax, dword [0x703d20d8]
cmp dword [0x703d20e4], eax
jbe 0x70366df2
call fcn.70366a66
cmp eax, 0xffffffff
je 0x70367123
test eax, eax
je 0x70366e4c
cmp eax, 1
jne 0x70366e1e
and dword [0x703d20d0], 0
mov eax, dword [0x703d20e8]
mov ecx, dword [0x703c20b8]
mov ebx, dword [0x703d20e0]
dec eax
cdq
sub eax, edx
sar eax, 1
mov dword [0x703d20e4], ecx
add eax, 0x40
jmp 0x70366d61
mov eax, dword [0x703c20b8]
lea esi, [eax + edi]
mov dword [0x703d20e4], esi
call fcn.70366723
call fcn.703667d1
test eax, eax
mov ecx, dword [0x703c20b8]
je 0x70366cb6
inc esi
jmp 0x70366c3d
cmp eax, 2
jne case.0x70366d6b.56
mov ebx, dword [0x703d20e0]
mov esi, dword [ebx + 4]
add esi, dword [0x703d20d8]
mov dword [0x703d20e4], esi
call fcn.70366723
mov ecx, dword [0x703c20b8]
jmp 0x70366cb6
mov eax, dword [0x703c20b8]
lea esi, [eax + edi]
mov dword [0x703d20e4], esi
call fcn.70366723
mov ecx, dword [0x703c20b8]
jmp 0x70366c3d
mov dword [0x703d20e8], 3
jmp case.0x70366d6b.56
mov dword [0x703d20e8], 5
jmp case.0x70366d6b.56
mov dword [0x703d20e8], 1
jmp case.0x70366d6b.56
push dword [0x703d20f0]
push 1
push dword [0x703d20d4]
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
jmp case.0x70366d6b.56
mov eax, 0x106
jmp 0x7036712b
mov eax, 0x107
jmp 0x7036712b
mov eax, 0x10a
jmp 0x7036712b
mov eax, 0x108
jmp 0x7036712b
mov eax, 0x109
jmp 0x7036712b
mov eax, 0x10b
jmp 0x7036712b
mov eax, 0x10c
jmp 0x7036712b
mov eax, 0x10d
jmp 0x7036712b
mov eax, 0x10e
jmp 0x7036712b
mov eax, 0x10f
jmp 0x7036712b
mov eax, 0x110
jmp 0x7036712b
mov eax, 0x111
jmp 0x7036712b
mov eax, 0x112
jmp 0x7036712b
mov eax, 0x113
jmp 0x7036712b
mov eax, 0x114
jmp 0x7036712b
mov eax, 0x115
jmp 0x7036712b
mov eax, 0x116
jmp 0x7036712b
mov eax, 0x117
jmp 0x7036712b
mov eax, 0x118
jmp 0x7036712b
mov eax, 0x119
jmp 0x7036712b
mov eax, 0x11a
jmp 0x7036712b
mov eax, 0x11b
jmp 0x7036712b
mov eax, 0x12e
jmp 0x7036712b
mov eax, 0x12d
jmp 0x7036712b
mov eax, 0x128
jmp 0x7036712b
mov eax, 0x11c
jmp 0x7036712b
mov eax, 0x11d
jmp 0x7036712b
mov eax, 0x11e
jmp 0x7036712b
mov eax, 0x11f
jmp 0x7036712b
mov eax, 0x120
jmp 0x7036712b
mov eax, 0x121
jmp 0x7036712b
mov eax, 0x122
jmp 0x7036712b
mov eax, 0x123
jmp 0x7036712b
mov eax, 0x124
jmp 0x7036712b
mov eax, 0x125
jmp 0x7036712b
mov eax, 0x126
jmp 0x7036712b
mov eax, 0x127
jmp 0x7036712b
mov eax, 0x12f
jmp 0x7036712b
mov eax, 0x132
jmp 0x7036712b
mov eax, 0x130
jmp 0x7036712b
mov eax, 0x133
jmp 0x7036712b
mov eax, 0x131
jmp 0x7036712b
mov eax, 0x134
jmp 0x7036712b
mov eax, 0x129
jmp 0x7036712b
mov eax, 0x12a
jmp 0x7036712b
mov eax, 0x12b
jmp 0x7036712b
mov eax, 0x12c
jmp 0x7036712b
push 0x7030a114
push 0x1f
push 0x703c2038
call fcn.70336970
mov eax, 0x105
jmp 0x7036712b
push 0x1f
push 0x703c2038
push 0xffffffffffffffff
push ecx
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [0x703c2074], si
mov eax, 0x102
jmp 0x7036712b
push ecx
call dword [sym.imp.MSVCR80.dll_atoi]
pop ecx
mov dword [0x703c2038], eax
mov eax, 0x103
jmp 0x7036712b
inc ecx
push 0x10
push 0
push ecx
call dword [sym.imp.MSVCR80.dll_strtol]
add esp, 0xc
jmp 0x703670cf
add ecx, 2
jmp 0x703670dc
push ecx
call fcn.703668d6
mov dword [0x703c2038], eax
mov eax, 0x104
jmp 0x7036712b
movzx eax, byte [ecx]
jmp 0x7036712b
and dword [0x703bde44], 0
push 0x7030a0e0
mov dword [0x703c20b8], 0x703bde48
call fcn.70364eee
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4