Function at 0x4135c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x4210a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x48]
mov byte [ebp - 0xdc], 0
mov byte [ebp - 0xd2], 0
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xe8], esi
push edi
test al, 3
jne 0x413628
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movdqu xmmword [ebp - 0x48], xmm0
movdqu xmmword [ebp - 0x38], xmm0
movdqu xmmword [ebp - 0x28], xmm0
movdqu xmmword [ebp - 0x18], xmm0
jmp 0x413638
push 0x44
lea eax, [ebp - 0x48]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xdc]
mov edi, edi
movsx eax, byte [esi]
inc esi
test eax, eax
je 0x413827
cmp eax, 0x25
jne 0x413640
xor ecx, ecx
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xec], 0
xor edi, edi
mov byte [ebp - 0xd1], cl
nop
movsx edx, byte [esi]
inc esi
test edx, edx
je 0x413821
lea eax, [edx - 0x24]
cmp eax, 0x56
ja case.0x41368f.37
movzx eax, byte [eax + 0x413ec0]
jmp dword [eax*4 + 0x413e94]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
lea ecx, [edx + ecx*2]
jmp case.0x41368f.39
mov eax, dword [ebp - 0xdc]
mov ecx, 1
cmp byte [ebp - 0xd1], 0
movzx eax, al
cmovne eax, ecx
mov byte [ebp - 0xd1], cl
mov dword [ebp - 0xdc], eax
xor ecx, ecx
jmp case.0x41368f.39
mov byte [ebp - 0xd2], 1
test ecx, ecx
jle case.0x413859.0
cmp ecx, 0x10
jg case.0x413859.0
cmp byte [ebp - 0xd1], 0
je 0x413724
mov eax, dword [ebp + ecx*4 - 0x48]
test eax, eax
je 0x4136fb
cmp eax, 1
jne case.0x413859.0
cmp dword [ebp - 0xe0], ecx
mov dword [ebp + ecx*4 - 0x48], 1
cmovg ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe0], ecx
xor ecx, ecx
mov byte [ebp - 0xd1], 0
jmp case.0x41368f.39
mov edi, ecx
xor ecx, ecx
jmp case.0x41368f.39
cmp dword [ebp - 0xec], 0
je 0x413745
mov dword [ebp - 0xf4], 1
jmp case.0x41368f.39
mov dword [ebp - 0xec], 1
jmp case.0x41368f.39
test edi, edi
je 0x41378a
cmp dword [ebp - 0xf4], 0
je 0x413768
mov eax, 3
jmp 0x413774
xor eax, eax
cmp dword [ebp - 0xec], eax
setne al
inc eax
mov ecx, dword [ebp + edi*4 - 0x48]
test ecx, ecx
je 0x413784
cmp ecx, eax
jne case.0x413859.0
mov dword [ebp + edi*4 - 0x48], eax
jmp 0x4137ef
mov cl, 1
mov dword [ebp - 0xdc], ecx
jmp 0x413808
test edi, edi
je 0x41378a
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x4137a9
cmp eax, 1
jne case.0x413859.0
mov dword [ebp + edi*4 - 0x48], 1
jmp 0x4137ef
test edi, edi
je 0x41378a
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x4137c8
cmp eax, 5
jne case.0x413859.0
mov dword [ebp + edi*4 - 0x48], 5
jmp 0x4137ef
test edi, edi
je 0x41378a
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x4137e7
cmp eax, 4
jne case.0x413859.0
mov dword [ebp + edi*4 - 0x48], 4
cmp dword [ebp - 0xe0], edi
cmovg edi, dword [ebp - 0xe0]
mov dword [ebp - 0xe0], edi
mov ecx, dword [ebp - 0xdc]
cmp byte [ebp - 0xd1], 0
je 0x413640
mov byte [ebp - 0xdc], 1
jmp 0x413638
mov ecx, dword [ebp - 0xdc]
cmp byte [ebp - 0xd2], 0
je 0x413838
test cl, cl
jne case.0x413859.0
mov edi, dword [ebp - 0xe0]
mov ecx, 1
cmp edi, ecx
jl 0x4138da
jmp 0x413850
mov eax, dword [ebp + ecx*4 - 0x48]
cmp eax, 5
ja case.default.0x413859
jmp dword [eax*4 + 0x413f18]
mov edx, dword [ebp - 0xd8]
add edx, 4
mov dword [ebp - 0xd8], edx
mov eax, dword [edx - 4]
jmp 0x4138ca
mov edx, dword [ebp - 0xd8]
add edx, 8
mov dword [ebp - 0xd8], edx
mov eax, dword [edx - 8]
mov dword [ebp + ecx*8 - 0xd0], eax
mov eax, dword [edx - 4]
mov dword [ebp + ecx*8 - 0xcc], eax
jmp case.default.0x413859
mov edx, dword [ebp - 0xd8]
add edx, 8
mov dword [ebp - 0xd8], edx
movsd xmm0, qword [edx - 8]
movsd qword [ebp + ecx*8 - 0xd0], xmm0
jmp case.default.0x413859
mov eax, dword [ebp - 0xd8]
add eax, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [eax - 4]
mov dword [ebp + ecx*8 - 0xd0], eax
inc ecx
cmp ecx, edi
jle 0x413850
mov eax, dword [ebp - 0xe8]
movsx ecx, byte [eax]
mov dword [ebp - 0xec], ecx
test ecx, ecx
je 0x413e81
mov dword [ebp - 0x100], 0x30
jmp 0x413900
inc eax
cmp byte [ebx + 0x14], 0
mov dword [ebp - 0xe8], eax
jne 0x413e81
cmp ecx, 0x25
je 0x413983
mov eax, dword [ebx + 8]
test eax, eax
je 0x413959
mov esi, dword [ebx]
cmp esi, eax
jb 0x413959
mov eax, dword [ebx + 0xc]
test eax, eax
je case.0x4139f5.38
mov edx, dword [ebx + 4]
sub esi, edx
je 0x413954
push eax
push esi
push 1
push edx
call dword [sym.imp.MSVCR120.dll_fwrite]
add dword [ebx + 0x10], eax
add esp, 0x10
mov ecx, dword [ebp - 0xec]
cmp eax, esi
je 0x413954
mov byte [ebx + 0x14], 1
mov eax, dword [ebx + 4]
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], cl
jmp 0x413e68
call dword [sym.imp.MSVCR120.dll__errno]
pop edi
pop esi
mov dword [eax], 0x16
mov byte [ebx + 0x14], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
xor esi, esi
xor edi, edi
xor edx, edx
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xe0], edx
mov byte [ebp - 0xe1], dl
mov byte [ebp - 0xd1], dl
jmp 0x4139d0
xor edx, edx
mov eax, dword [ebp - 0xe8]
lea esp, [esp]
movsx ecx, byte [eax]
inc eax
mov dword [ebp - 0xe8], eax
test ecx, ecx
je 0x413e81
lea eax, [ecx - 0x24]
cmp eax, 0x56
ja case.0x4139f5.38
movzx eax, byte [eax + 0x413f74]
jmp dword [eax*4 + 0x413f30]
mov dword [ebp - 0xf0], 1
jmp case.0x4139f5.39
mov dword [ebp - 0xec], 1
jmp case.0x4139f5.39
test edx, edx
jne case.0x4139f5.49
mov eax, dword [ebp - 0xf4]
test edi, edi
cmove eax, dword [ebp - 0x100]
mov dword [ebp - 0xf4], eax
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea edx, [ecx + eax*2]
jmp case.0x4139f5.39
cmp byte [ebp - 0xd1], 0
je 0x413a53
xor al, al
mov edi, 1
mov byte [ebp - 0xd1], al
jmp 0x4139c1
mov esi, edx
mov edi, 1
jmp 0x4139c1
cmp byte [ebp - 0xd2], 0
je 0x413a7b
mov byte [ebp - 0xe1], 1
mov byte [ebp - 0xd1], 1
jmp 0x4139c1
mov eax, dword [ebp - 0xd8]
add eax, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [eax - 4]
test edi, edi
je 0x413ab3
mov dword [ebp - 0xdc], eax
test eax, eax
jns 0x413ac5
mov dword [ebp - 0xdc], 0
xor edi, edi
mov byte [ebp - 0xd1], 1
jmp 0x4139c1
mov esi, eax
test eax, eax
jns 0x413ac5
mov dword [ebp - 0xf0], 1
neg esi
mov byte [ebp - 0xd1], 1
jmp 0x4139c1
cmp byte [ebp - 0xe1], 0
je 0x413b27
mov eax, dword [ebp + edx*8 - 0xd0]
test edi, edi
je 0x413b08
mov dword [ebp - 0xdc], eax
test eax, eax
jns 0x413b1a
xor edi, edi
mov dword [ebp - 0xdc], 0
xor al, al
mov byte [ebp - 0xe1], al
jmp 0x4139c1
mov esi, eax
test eax, eax
jns 0x413b1a
mov dword [ebp - 0xf0], 1
neg esi
xor al, al
mov byte [ebp - 0xe1], al
jmp 0x4139c1
mov dword [ebp - 0xe0], edx
jmp 0x4139c1
cmp dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0xe8]
je 0x413b50
mov dword [ebp - 0xfc], 1
jmp 0x4139d0
mov dword [ebp - 0xf8], 1
jmp 0x4139d0
mov al, byte [ebp - 0xd1]
test al, al
jne 0x413b77
test edi, edi
je 0x413b75
mov dword [ebp - 0xdc], edx
jmp 0x413b77
mov esi, edx
cmp byte [ebp - 0xd2], 0
mov edx, dword [ebp - 0xfc]
je 0x413baf
test edx, edx
je 0x413ba0
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp + edx*8 - 0xd0]
mov edx, dword [ebp + edx*8 - 0xcc]
jmp 0x413bdd
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x413bdc
test edx, edx
je 0x413bca
mov edx, dword [ebp - 0xd8]
add edx, 8
mov dword [ebp - 0xd8], edx
mov eax, dword [edx - 8]
mov edx, dword [edx - 4]
jmp 0x413bdd
mov eax, dword [ebp - 0xd8]
add eax, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [eax - 4]
cdq
push ebx
push edi
push dword [ebp - 0xdc]
mov edi, dword [ebp - 0xf4]
push edi
push esi
mov esi, dword [ebp - 0xf0]
push esi
mov esi, dword [ebp - 0xec]
push esi
push ecx
push edx
push eax
call fcn.00414160
add esp, 0x28
jmp case.0x4139f5.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x413c23
test edi, edi
je 0x413c21
mov dword [ebp - 0xdc], edx
jmp 0x413c23
mov esi, edx
cmp byte [ebp - 0xd2], 0
mov edx, dword [ebp - 0xfc]
je 0x413c5b
test edx, edx
je 0x413c4c
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp + edx*8 - 0xd0]
mov edx, dword [ebp + edx*8 - 0xcc]
jmp 0x413c8a
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x413c88
test edx, edx
je 0x413c76
mov edx, dword [ebp - 0xd8]
add edx, 8
mov dword [ebp - 0xd8], edx
mov eax, dword [edx - 8]
mov edx, dword [edx - 4]
jmp 0x413c8a
mov eax, dword [ebp - 0xd8]
add eax, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [eax - 4]
xor edx, edx
push ebx
push edi
push dword [ebp - 0xdc]
mov edi, dword [ebp - 0xf4]
push edi
push esi
mov esi, dword [ebp - 0xf0]
push esi
mov esi, dword [ebp - 0xec]
push esi
push ecx
push edx
push eax
call fcn.00414160
add esp, 0x28
jmp case.0x4139f5.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x413cc7
test edi, edi
cmove esi, edx
cmp byte [ebp - 0xd2], 0
je 0x413cf5
mov eax, dword [ebp - 0xe0]
push ebx
push esi
mov esi, dword [ebp - 0xf0]
movzx eax, byte [ebp + eax*8 - 0xd0]
push esi
push eax
call fcn.004143b0
add esp, 0x10
jmp case.0x4139f5.38
mov eax, dword [ebp - 0xd8]
add eax, 4
push ebx
push esi
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0xd8], eax
movzx eax, byte [eax - 4]
push esi
push eax
call fcn.004143b0
add esp, 0x10
jmp case.0x4139f5.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x413d33
test edi, edi
je 0x413d31
mov ecx, edx
jmp 0x413d39
mov esi, edx
mov ecx, dword [ebp - 0xdc]
cmp byte [ebp - 0xd2], 0
je 0x413d51
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x413d63
mov eax, dword [ebp - 0xd8]
add eax, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [eax - 4]
push ebx
push edi
push ecx
push esi
mov esi, dword [ebp - 0xf0]
push esi
push eax
call fcn.00414030
add esp, 0x18
jmp case.0x4139f5.38
cmp byte [ebp - 0xd2], 0
je 0x413d94
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x413da6
mov eax, dword [ebp - 0xd8]
add eax, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [eax - 4]
push eax
lea eax, [ebp - 0x44]
push 0x41f704
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
test eax, eax
jns 0x413dc6
mov byte [ebx + 0x14], 1
jmp case.0x4139f5.38
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414710
add esp, 0xc
jmp case.0x4139f5.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x413de9
test edi, edi
jne 0x413def
mov esi, edx
mov edx, dword [ebp - 0xdc]
cmp byte [ebp - 0xd2], 0
je 0x413e09
mov eax, dword [ebp - 0xe0]
movsd xmm0, qword [ebp + eax*8 - 0xd0]
jmp 0x413e1d
mov eax, dword [ebp - 0xd8]
add eax, 8
mov dword [ebp - 0xd8], eax
movsd xmm0, qword [eax - 8]
push ebx
push edi
mov edi, dword [ebp - 0xf4]
push edx
push edi
push esi
mov esi, dword [ebp - 0xf0]
push esi
mov esi, dword [ebp - 0xec]
push esi
push ecx
sub esp, 8
movsd qword [esp], xmm0
call fcn.00414460
add esp, 0x28
jmp case.0x4139f5.38
mov eax, dword [ebx + 8]
test eax, eax
je 0x413e63
cmp dword [ebx], eax
jb 0x413e63
cmp dword [ebx + 0xc], 0
je case.0x4139f5.38
push ebx
call fcn.00413570
add esp, 4
mov eax, dword [ebx]
mov byte [eax], 0x25
inc dword [ebx]
mov eax, dword [ebp - 0xe8]
movsx ecx, byte [eax]
mov dword [ebp - 0xec], ecx
test ecx, ecx
jne 0x413900
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004175a2
mov esp, ebp
pop ebp
ret