Function at 0x4b5190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f73
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x4fafc0]
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.004982d0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0048ae10
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b527d
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b524b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5241
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b52a9
push ecx
push edx
call fcn.004bea18
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 0x4b52b9
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b52af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b52af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
lea eax, [ebp - 0x40]
push 0x2e
push eax
call fcn.0049f4f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b5338
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5306
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b52fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5364
push ecx
push edx
call fcn.004bea18
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 0x4b5374
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b536a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b536a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498e40
push str.Temp
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.0045ec30
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b540e
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b53dc
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b53d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5488
push ecx
push edx
call fcn.004bea18
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 0x4b5444
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b543a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5488
push ecx
push edx
call fcn.004bea18
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 0x4b5498
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b548e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b548e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498e40
push str.Temp
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.0045ec30
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b5532
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5500
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b54f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b55ac
push ecx
push edx
call fcn.004bea18
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 0x4b5568
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b555e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b55ac
push ecx
push edx
call fcn.004bea18
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 0x4b55bc
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b55b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b55b2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498e40
push str.DbgDump
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
call fcn.0045ec30
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b5656
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5624
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b561a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b56d0
push ecx
push edx
call fcn.004bea18
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 0x4b568c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5682
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b56d0
push ecx
push edx
call fcn.004bea18
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 0x4b56e0
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b56d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b56d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00498e40
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b5763
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5731
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5727
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b578f
push ecx
push edx
call fcn.004bea18
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 0x4b579f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5795
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5795
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
cmp byte [0x4faf02], 0
je 0x4b580c
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4b610b
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.00461b00
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.0049e460
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b3c70
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498e40
push 0x4dc23c
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
call fcn.0045ec30
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b58a6
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5874
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b586a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5920
push ecx
push edx
call fcn.004bea18
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 0x4b58dc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b58d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5920
push ecx
push edx
call fcn.004bea18
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 0x4b5930
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5926
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5926
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.00479680
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00498e40
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b59bc
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b598a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5980
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b59e8
push ecx
push edx
call fcn.004bea18
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 0x4b59f8
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b59ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b59ee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
cmp byte [0x4faf02], 0
je 0x4b5a63
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4b610b
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.00461b00
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.0049e460
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b3c70
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 0x4b6110
cmp esi, 7
ja 0x4b5ab1
mov ecx, 7
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
jmp 0x4b5b10
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4b5ac4
mov eax, 0x7ffffffe
jmp 0x4b5ace
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.0045f300
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
test esi, esi
mov dword [ebp - 0x180], edi
sete al
test esi, esi
je 0x4b5b84
mov edi, dword [ebp - 0x58]
test al, al
jne 0x4b5b4f
lea edx, [esi - 1]
cmp esi, edx
jbe 0x4b6115
cmp ecx, 7
lea eax, [ebp - 0x58]
cmova eax, edi
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x4b5b84
cmp eax, 0x2f
je 0x4b5b84
cmp esi, ecx
jae 0x4b5b6b
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 0x4b5b84
push 0x5c
mov byte [ebp - 0x184], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x184]
push 1
call fcn.00460ae0
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.004b3da0
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.0045ec30
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b5c6c
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5c3a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5c30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5cd3
push ecx
push edx
call fcn.004bea18
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
lea ecx, [ebp - 0xa0]
call fcn.004b3c70
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x4b5c8f
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x40]
push eax
call fcn.004b3a40
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 0x4b5ce3
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5cd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5cd9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bea18
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov byte [0x4faf02], 0
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x4b5d28
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5d1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b60da
push ecx
push edx
call fcn.004bea18
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0xa
cmova eax, dword [ebp - 0x28]
push 0x4dc244
push eax
call fcn.004983b0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
test esi, esi
jne 0x4b5d78
push eax
lea eax, [ebp - 0xa0]
push str.Cant_open_ab
push eax
call fcn.0045ee50
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.004b3c70
mov byte [ebp - 0x179], 0
jmp 0x4b606a
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x178]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.00462910
cmp dword [ebp - 0x158], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jne 0x4b6045
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.004b0050
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004656c0
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.004657c0
lea eax, [ebp - 0x88]
push eax
call fcn.0048ee80
push 0x4dc048
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
call fcn.0045ec30
add esp, 0x10
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xf
call fcn.004b3c70
lea eax, [ebp - 0xb8]
push eax
call fcn.0048ae10
push 0x4dc048
push eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x10
push eax
call fcn.0045ec30
add esp, 0x10
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x12
call fcn.004b3c70
lea eax, [ebp - 0x88]
push eax
call fcn.0047b2c0
push 0x4dc048
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x13
push eax
call fcn.0045ec30
add esp, 0x10
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x15
call fcn.004b3c70
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.0048eae0
push 0x4dc048
push eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0x16
push eax
call fcn.0045ec30
add esp, 0x14
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x18
call fcn.004b3c70
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0045ed30
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x19
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0045ebd0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x1a
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045ebd0
add esp, 0x24
lea ecx, [ebp - 0x88]
call fcn.004b3c70
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x1d
call fcn.004b3c70
push 0x4dc26c
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00461850
lea eax, [ebp - 0x70]
push eax
call fcn.004ad0a0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
push 0x4dc098
push eax
call fcn.004982d0
push 0x4dbde4
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x1f
push eax
call fcn.0045ec30
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x20
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0045ebd0
add esp, 0x40
push 0x4dc048
push eax
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0xd0]
push eax
call fcn.0045ec30
add esp, 0xc
lea ecx, [ebp - 0x70]
push eax
call fcn.00466570
lea ecx, [ebp - 0xd0]
call fcn.004b3c70
lea ecx, [ebp - 0xb8]
call fcn.004b3c70
lea ecx, [ebp - 0x88]
call fcn.004b3c70
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
call fcn.004b3c70
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004b0110
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.004657c0
lea ecx, [ebp - 0x70]
call fcn.004b3c70
lea ecx, [ebp - 0x40]
call fcn.004b3c70
lea ecx, [ebp - 0xe8]
call fcn.004b3c70
lea ecx, [ebp - 0x100]
call fcn.004b3c70
lea ecx, [ebp - 0x118]
call fcn.004b3c70
lea ecx, [ebp - 0xa0]
call fcn.004b3c70
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub eax, ecx
je 0x4b6059
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 0x4b60a0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6096
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b60da
push ecx
push edx
call fcn.004bea18
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 0x4b60ea
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b60e0
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b60e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bea18
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.004beeb3
mov esp, ebp
pop ebp
ret
call fcn.004b3cd0
call fcn.004b3cd0
call fcn.004b3d10
int3