Function at 0x426520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x455c20]
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 0x426588
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 0x426598
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 0x426787
cmp eax, 0x25
jne 0x4265a0
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 0x426781
lea eax, [edx - 0x24]
cmp eax, 0x56
ja case.0x4265ef.37
movzx eax, byte [eax + 0x426e20]
jmp dword [eax*4 + 0x426df4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
lea ecx, [edx + ecx*2]
jmp case.0x4265ef.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.0x4265ef.39
mov byte [ebp - 0xd2], 1
test ecx, ecx
jle case.0x4267b9.0
cmp ecx, 0x10
jg case.0x4267b9.0
cmp byte [ebp - 0xd1], 0
je 0x426684
mov eax, dword [ebp + ecx*4 - 0x48]
test eax, eax
je 0x42665b
cmp eax, 1
jne case.0x4267b9.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.0x4265ef.39
mov edi, ecx
xor ecx, ecx
jmp case.0x4265ef.39
cmp dword [ebp - 0xec], 0
je 0x4266a5
mov dword [ebp - 0xf4], 1
jmp case.0x4265ef.39
mov dword [ebp - 0xec], 1
jmp case.0x4265ef.39
test edi, edi
je 0x4266ea
cmp dword [ebp - 0xf4], 0
je 0x4266c8
mov eax, 3
jmp 0x4266d4
xor eax, eax
cmp dword [ebp - 0xec], eax
setne al
inc eax
mov ecx, dword [ebp + edi*4 - 0x48]
test ecx, ecx
je 0x4266e4
cmp ecx, eax
jne case.0x4267b9.0
mov dword [ebp + edi*4 - 0x48], eax
jmp 0x42674f
mov cl, 1
mov dword [ebp - 0xdc], ecx
jmp 0x426768
test edi, edi
je 0x4266ea
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x426709
cmp eax, 1
jne case.0x4267b9.0
mov dword [ebp + edi*4 - 0x48], 1
jmp 0x42674f
test edi, edi
je 0x4266ea
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x426728
cmp eax, 5
jne case.0x4267b9.0
mov dword [ebp + edi*4 - 0x48], 5
jmp 0x42674f
test edi, edi
je 0x4266ea
mov eax, dword [ebp + edi*4 - 0x48]
test eax, eax
je 0x426747
cmp eax, 4
jne case.0x4267b9.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 0x4265a0
mov byte [ebp - 0xdc], 1
jmp 0x426598
mov ecx, dword [ebp - 0xdc]
cmp byte [ebp - 0xd2], 0
je 0x426798
test cl, cl
jne case.0x4267b9.0
mov edi, dword [ebp - 0xe0]
mov ecx, 1
cmp edi, ecx
jl 0x42683a
jmp 0x4267b0
mov eax, dword [ebp + ecx*4 - 0x48]
cmp eax, 5
ja case.default.0x4267b9
jmp dword [eax*4 + 0x426e78]
mov edx, dword [ebp - 0xd8]
add edx, 4
mov dword [ebp - 0xd8], edx
mov eax, dword [edx - 4]
jmp 0x42682a
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.0x4267b9
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.0x4267b9
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 0x4267b0
mov eax, dword [ebp - 0xe8]
movsx ecx, byte [eax]
mov dword [ebp - 0xec], ecx
test ecx, ecx
je 0x426de1
mov dword [ebp - 0x100], 0x30
jmp 0x426860
inc eax
cmp byte [ebx + 0x14], 0
mov dword [ebp - 0xe8], eax
jne 0x426de1
cmp ecx, 0x25
je 0x4268e3
mov eax, dword [ebx + 8]
test eax, eax
je 0x4268b9
mov esi, dword [ebx]
cmp esi, eax
jb 0x4268b9
mov eax, dword [ebx + 0xc]
test eax, eax
je case.0x426955.38
mov edx, dword [ebx + 4]
sub esi, edx
je 0x4268b4
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 0x4268b4
mov byte [ebx + 0x14], 1
mov eax, dword [ebx + 4]
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], cl
jmp 0x426dc8
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.00429e54
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 0x426930
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 0x426de1
lea eax, [ecx - 0x24]
cmp eax, 0x56
ja case.0x426955.38
movzx eax, byte [eax + 0x426ed4]
jmp dword [eax*4 + 0x426e90]
mov dword [ebp - 0xf0], 1
jmp case.0x426955.39
mov dword [ebp - 0xec], 1
jmp case.0x426955.39
test edx, edx
jne case.0x426955.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.0x426955.39
cmp byte [ebp - 0xd1], 0
je 0x4269b3
xor al, al
mov edi, 1
mov byte [ebp - 0xd1], al
jmp 0x426921
mov esi, edx
mov edi, 1
jmp 0x426921
cmp byte [ebp - 0xd2], 0
je 0x4269db
mov byte [ebp - 0xe1], 1
mov byte [ebp - 0xd1], 1
jmp 0x426921
mov eax, dword [ebp - 0xd8]
add eax, 4
mov dword [ebp - 0xd8], eax
mov eax, dword [eax - 4]
test edi, edi
je 0x426a13
mov dword [ebp - 0xdc], eax
test eax, eax
jns 0x426a25
mov dword [ebp - 0xdc], 0
xor edi, edi
mov byte [ebp - 0xd1], 1
jmp 0x426921
mov esi, eax
test eax, eax
jns 0x426a25
mov dword [ebp - 0xf0], 1
neg esi
mov byte [ebp - 0xd1], 1
jmp 0x426921
cmp byte [ebp - 0xe1], 0
je 0x426a87
mov eax, dword [ebp + edx*8 - 0xd0]
test edi, edi
je 0x426a68
mov dword [ebp - 0xdc], eax
test eax, eax
jns 0x426a7a
xor edi, edi
mov dword [ebp - 0xdc], 0
xor al, al
mov byte [ebp - 0xe1], al
jmp 0x426921
mov esi, eax
test eax, eax
jns 0x426a7a
mov dword [ebp - 0xf0], 1
neg esi
xor al, al
mov byte [ebp - 0xe1], al
jmp 0x426921
mov dword [ebp - 0xe0], edx
jmp 0x426921
cmp dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0xe8]
je 0x426ab0
mov dword [ebp - 0xfc], 1
jmp 0x426930
mov dword [ebp - 0xf8], 1
jmp 0x426930
mov al, byte [ebp - 0xd1]
test al, al
jne 0x426ad7
test edi, edi
je 0x426ad5
mov dword [ebp - 0xdc], edx
jmp 0x426ad7
mov esi, edx
cmp byte [ebp - 0xd2], 0
mov edx, dword [ebp - 0xfc]
je 0x426b0f
test edx, edx
je 0x426b00
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp + edx*8 - 0xd0]
mov edx, dword [ebp + edx*8 - 0xcc]
jmp 0x426b3d
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x426b3c
test edx, edx
je 0x426b2a
mov edx, dword [ebp - 0xd8]
add edx, 8
mov dword [ebp - 0xd8], edx
mov eax, dword [edx - 8]
mov edx, dword [edx - 4]
jmp 0x426b3d
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.004270c0
add esp, 0x28
jmp case.0x426955.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x426b83
test edi, edi
je 0x426b81
mov dword [ebp - 0xdc], edx
jmp 0x426b83
mov esi, edx
cmp byte [ebp - 0xd2], 0
mov edx, dword [ebp - 0xfc]
je 0x426bbb
test edx, edx
je 0x426bac
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp + edx*8 - 0xd0]
mov edx, dword [ebp + edx*8 - 0xcc]
jmp 0x426bea
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x426be8
test edx, edx
je 0x426bd6
mov edx, dword [ebp - 0xd8]
add edx, 8
mov dword [ebp - 0xd8], edx
mov eax, dword [edx - 8]
mov edx, dword [edx - 4]
jmp 0x426bea
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.004270c0
add esp, 0x28
jmp case.0x426955.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x426c27
test edi, edi
cmove esi, edx
cmp byte [ebp - 0xd2], 0
je 0x426c55
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.00427310
add esp, 0x10
jmp case.0x426955.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.00427310
add esp, 0x10
jmp case.0x426955.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x426c93
test edi, edi
je 0x426c91
mov ecx, edx
jmp 0x426c99
mov esi, edx
mov ecx, dword [ebp - 0xdc]
cmp byte [ebp - 0xd2], 0
je 0x426cb1
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x426cc3
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.00426f90
add esp, 0x18
jmp case.0x426955.38
cmp byte [ebp - 0xd2], 0
je 0x426cf4
mov eax, dword [ebp - 0xe0]
mov eax, dword [ebp + eax*8 - 0xd0]
jmp 0x426d06
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 0x44badc
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
test eax, eax
jns 0x426d26
mov byte [ebx + 0x14], 1
jmp case.0x426955.38
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00427670
add esp, 0xc
jmp case.0x426955.38
mov al, byte [ebp - 0xd1]
test al, al
jne 0x426d49
test edi, edi
jne 0x426d4f
mov esi, edx
mov edx, dword [ebp - 0xdc]
cmp byte [ebp - 0xd2], 0
je 0x426d69
mov eax, dword [ebp - 0xe0]
movsd xmm0, qword [ebp + eax*8 - 0xd0]
jmp 0x426d7d
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.004273c0
add esp, 0x28
jmp case.0x426955.38
mov eax, dword [ebx + 8]
test eax, eax
je 0x426dc3
cmp dword [ebx], eax
jb 0x426dc3
cmp dword [ebx + 0xc], 0
je case.0x426955.38
push ebx
call fcn.004264d0
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 0x426860
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429e54
mov esp, ebp
pop ebp
ret