Function at 0x4da130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5287e3
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x584f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 1
mov dword [ebp - 0x180], edi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push str._m_d__H
push eax
call fcn.004c1930
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004b18c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da21d
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da1eb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da1e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da249
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da259
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da24f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da24f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
lea eax, [ebp - 0x40]
push 0x2e
push eax
call fcn.004c7c90
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da2d8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da2a6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da29c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da304
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da314
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da30a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da30a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c1c80
push str.Temp
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.00482be0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da3ae
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da37c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da372
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da428
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da3e4
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da3da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da428
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x4da438
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da42e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da42e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c1c80
push str.Temp
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.00482be0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da4d2
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da4a0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da496
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da54c
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da508
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da4fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da54c
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x4da55c
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da552
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da552
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c1c80
push str.DbgDump
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
call fcn.00482be0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da5f6
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da5c4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da5ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da670
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da62c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da622
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da670
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x4da680
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da676
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da676
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004c1c80
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da703
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da6d1
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da6c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da72f
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da73f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da735
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da735
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
cmp byte [0x56a1d2], 0
je 0x4da7ac
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4db080
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 4
cmova eax, dword [ebp - 0x28]
push str..txt
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x180]
lea ecx, [ebp - 0x40]
call fcn.00485210
mov edi, 5
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0xa
cmova eax, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.004c7230
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00475e90
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c1c80
push 0x538ac0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
call fcn.00482be0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da846
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da814
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da80a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da8c0
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da87c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da872
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da8c0
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x4da8d0
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da8c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da8c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.0049ddc0
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004c1c80
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4da95c
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4da92a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da920
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4da988
push ecx
push edx
call fcn.0050686b
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4da998
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4da98e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da98e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
cmp byte [0x56a1d2], 0
je 0x4daa03
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4db080
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 4
cmova eax, dword [ebp - 0x28]
push str..txt
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x180]
lea ecx, [ebp - 0x40]
call fcn.00485210
or edi, 8
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0xa
cmova eax, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 8
call fcn.004c7230
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00475e90
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
xorps xmm0, xmm0
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x180], eax
movups xmmword [ebp - 0x58], xmm0
cmp esi, 0x7ffffffe
ja 0x4db085
cmp esi, 7
ja 0x4daa51
mov ecx, 7
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
jmp 0x4daab0
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4daa64
mov eax, 0x7ffffffe
jmp 0x4daa6e
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0045bf50
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x44], ecx
lea ecx, [esi*2 + 2]
push ecx
push dword [ebp - 0x180]
mov dword [ebp - 0x58], eax
push eax
mov dword [ebp - 0x48], esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x44]
add esp, 0x14
mov esi, dword [ebp - 0x48]
or edi, 1
mov byte [ebp - 4], 9
mov dword [ebp - 0x180], edi
test esi, esi
je 0x4dab1b
lea edx, [esi - 1]
cmp esi, edx
jbe 0x4db08a
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x58]
cmp ecx, 7
cmova eax, edi
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x4dab1b
cmp eax, 0x2f
je 0x4dab1b
cmp esi, ecx
jae 0x4dab02
lea eax, [esi + 1]
cmp ecx, 7
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
cmova eax, edi
mov dword [eax + esi*2], 0x5c
jmp 0x4dab1b
push 0x5c
mov byte [ebp - 0x184], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x184]
push 1
call fcn.00484260
cmp dword [ebp - 0x5c], 7
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmova eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 4], 0xa
call fcn.00475f30
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push str..txt
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00482be0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4dabe1
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x4dabaf
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
call fcn.004d9440
add esp, 0xc
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xa0]
call fcn.00475e90
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x4dac04
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x40]
push eax
call fcn.004d9440
add esp, 0xc
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x4dac58
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4dac4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dac4e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov byte [0x56a1d2], 0
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x4dac9d
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4dac93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db04f
push ecx
push edx
call fcn.0050686b
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0xa
cmova eax, dword [ebp - 0x28]
push 0x538ac8
push eax
call fcn.004c1a10
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
test esi, esi
jne 0x4daced
push eax
lea eax, [ebp - 0xa0]
push str.Cant_open_ab
push eax
call fcn.00482da0
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.00475e90
mov byte [ebp - 0x179], 0
jmp 0x4dafdf
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x178]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.0045ce10
cmp dword [ebp - 0x158], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jne 0x4dafba
xorps xmm0, xmm0
mov dword [ebp - 0x60], 2
movups xmmword [ebp - 0x70], xmm0
mov eax, 0xfeff
mov dword [ebp - 0x5c], 0xf
mov word [ebp - 0x70], ax
mov byte [ebp - 0x6e], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004d53c0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004882b0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
sub eax, ecx
push esi
push eax
push 1
push ecx
call edi
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.004883a0
lea eax, [ebp - 0x88]
push eax
call fcn.004b49c0
push 0x533104
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
call fcn.00482be0
add esp, 0x10
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xf
call fcn.00475e90
lea eax, [ebp - 0xb8]
push eax
call fcn.004b18c0
push 0x533104
push eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x10
push eax
call fcn.00482be0
add esp, 0x10
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x12
call fcn.00475e90
lea eax, [ebp - 0x88]
push eax
call fcn.004a0a40
push 0x533104
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x13
push eax
call fcn.00482be0
add esp, 0x10
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x15
call fcn.00475e90
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.004b4620
push 0x533104
push eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0x16
push eax
call fcn.00482be0
add esp, 0x14
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x18
call fcn.00475e90
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00482ce0
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x19
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00482b80
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x1a
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00482b80
add esp, 0x24
lea ecx, [ebp - 0x88]
call fcn.00475e90
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x1d
call fcn.00475e90
push 0x538af0
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0045c8f0
lea eax, [ebp - 0x70]
push eax
call fcn.004d2f20
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
push 0x538960
push eax
call fcn.004c1930
push 0x53894c
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x1f
push eax
call fcn.00482be0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x20
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00482b80
add esp, 0x40
push 0x533104
push eax
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0xd0]
push eax
call fcn.00482be0
add esp, 0xc
lea ecx, [ebp - 0x70]
push eax
call fcn.00488d20
lea ecx, [ebp - 0xd0]
call fcn.00475e90
lea ecx, [ebp - 0xb8]
call fcn.00475e90
lea ecx, [ebp - 0x88]
call fcn.00475e90
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
call fcn.00475e90
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004d5480
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
sub eax, ecx
push esi
push eax
push 1
push ecx
call edi
add esp, 0x18
lea ecx, [ebp - 0x4c]
call fcn.004883a0
lea ecx, [ebp - 0x70]
call fcn.00475e90
lea ecx, [ebp - 0x40]
call fcn.00475e90
lea ecx, [ebp - 0xe8]
call fcn.00475e90
lea ecx, [ebp - 0x100]
call fcn.00475e90
lea ecx, [ebp - 0x118]
call fcn.00475e90
lea ecx, [ebp - 0xa0]
call fcn.00475e90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub eax, ecx
je 0x4dafce
push esi
push eax
push 1
push ecx
call edi
add esp, 0x10
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebp - 0x179], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4db015
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4db00b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db04f
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ecx, ecx
je 0x4db05f
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4db055
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4db055
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0050686b
add esp, 8
mov al, byte [ebp - 0x179]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506d06
mov esp, ebp
pop ebp
ret
call fcn.00475ef0
call fcn.00475ef0
call fcn.00475f20
int3