Function at 0x4b4e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ba3
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.00497f40
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0048aa80
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b4eed
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b4ebb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b4eb1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b4f19
push ecx
push edx
call fcn.004be688
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 0x4b4f29
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b4f1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b4f1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
lea eax, [ebp - 0x40]
push 0x2e
push eax
call fcn.0049f160
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b4fa8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b4f76
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b4f6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b4fd4
push ecx
push edx
call fcn.004be688
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 0x4b4fe4
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b4fda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b4fda
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498ab0
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 0x4b507e
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b504c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5042
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b50f8
push ecx
push edx
call fcn.004be688
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 0x4b50b4
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b50aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b50f8
push ecx
push edx
call fcn.004be688
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 0x4b5108
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b50fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b50fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498ab0
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 0x4b51a2
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5170
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5166
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b521c
push ecx
push edx
call fcn.004be688
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 0x4b51d8
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b51ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b521c
push ecx
push edx
call fcn.004be688
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 0x4b522c
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5222
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5222
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498ab0
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 0x4b52c6
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5294
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b528a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5340
push ecx
push edx
call fcn.004be688
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 0x4b52fc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b52f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5340
push ecx
push edx
call fcn.004be688
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 0x4b5350
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5346
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5346
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00498ab0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b53d3
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b53a1
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5397
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b53ff
push ecx
push edx
call fcn.004be688
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 0x4b540f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5405
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5405
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
cmp byte [0x4faefa], 0
je 0x4b547c
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4b5d7b
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.0049e0d0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b38e0
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498ab0
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 0x4b5516
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b54e4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b54da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5590
push ecx
push edx
call fcn.004be688
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 0x4b554c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5542
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5590
push ecx
push edx
call fcn.004be688
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 0x4b55a0
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5596
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5596
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.004793f0
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00498ab0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b562c
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b55fa
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b55f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5658
push ecx
push edx
call fcn.004be688
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 0x4b5668
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b565e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b565e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
cmp byte [0x4faefa], 0
je 0x4b56d3
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4b5d7b
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.0049e0d0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b38e0
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 0x4b5d80
cmp esi, 7
ja 0x4b5721
mov ecx, 7
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
jmp 0x4b5780
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4b5734
mov eax, 0x7ffffffe
jmp 0x4b573e
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 0x4b57f4
mov edi, dword [ebp - 0x58]
test al, al
jne 0x4b57bf
lea edx, [esi - 1]
cmp esi, edx
jbe 0x4b5d85
cmp ecx, 7
lea eax, [ebp - 0x58]
cmova eax, edi
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x4b57f4
cmp eax, 0x2f
je 0x4b57f4
cmp esi, ecx
jae 0x4b57db
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 0x4b57f4
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.004b3a10
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 0x4b58dc
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b58aa
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b58a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5943
push ecx
push edx
call fcn.004be688
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.004b38e0
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x4b58ff
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x40]
push eax
call fcn.004b36b0
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 0x4b5953
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5949
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5949
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov byte [0x4faefa], 0
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x4b5998
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b598e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5d4a
push ecx
push edx
call fcn.004be688
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.00498020
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
test esi, esi
jne 0x4b59e8
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.004b38e0
mov byte [ebp - 0x179], 0
jmp 0x4b5cda
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 0x4b5cb5
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.004afcc0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00465540
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.00465640
lea eax, [ebp - 0x88]
push eax
call fcn.0048eaf0
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.004b38e0
lea eax, [ebp - 0xb8]
push eax
call fcn.0048aa80
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.004b38e0
lea eax, [ebp - 0x88]
push eax
call fcn.0047af30
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.004b38e0
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.0048e750
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.004b38e0
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.004b38e0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x1d
call fcn.004b38e0
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.004acd10
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
push 0x4dc098
push eax
call fcn.00497f40
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.004663f0
lea ecx, [ebp - 0xd0]
call fcn.004b38e0
lea ecx, [ebp - 0xb8]
call fcn.004b38e0
lea ecx, [ebp - 0x88]
call fcn.004b38e0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
call fcn.004b38e0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004afd80
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.00465640
lea ecx, [ebp - 0x70]
call fcn.004b38e0
lea ecx, [ebp - 0x40]
call fcn.004b38e0
lea ecx, [ebp - 0xe8]
call fcn.004b38e0
lea ecx, [ebp - 0x100]
call fcn.004b38e0
lea ecx, [ebp - 0x118]
call fcn.004b38e0
lea ecx, [ebp - 0xa0]
call fcn.004b38e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub eax, ecx
je 0x4b5cc9
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 0x4b5d10
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5d06
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5d4a
push ecx
push edx
call fcn.004be688
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 0x4b5d5a
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b5d50
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5d50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004be688
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.004beb23
mov esp, ebp
pop ebp
ret
call fcn.004b3940
call fcn.004b3940
call fcn.004b3980
int3