Function at 0x4b58e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db553
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x4fefc0]
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.00498390
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0048ae90
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b59cd
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b599b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5991
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b59f9
push ecx
push edx
call fcn.004bf0b8
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 0x4b5a09
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b59ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b59ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
lea eax, [ebp - 0x40]
push 0x2e
push eax
call fcn.0049f590
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b5a88
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5a56
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5a4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5ab4
push ecx
push edx
call fcn.004bf0b8
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 0x4b5ac4
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5aba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5aba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498f00
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 0x4b5b5e
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5b2c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5b22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5bd8
push ecx
push edx
call fcn.004bf0b8
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 0x4b5b94
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5b8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5bd8
push ecx
push edx
call fcn.004bf0b8
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 0x4b5be8
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5bde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5bde
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498f00
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 0x4b5c82
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5c50
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5c46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5cfc
push ecx
push edx
call fcn.004bf0b8
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 0x4b5cb8
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5cae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5cfc
push ecx
push edx
call fcn.004bf0b8
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 0x4b5d0c
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5d02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5d02
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498f00
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 0x4b5da6
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5d74
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5d6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5e20
push ecx
push edx
call fcn.004bf0b8
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 0x4b5ddc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5dd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5e20
push ecx
push edx
call fcn.004bf0b8
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 0x4b5e30
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5e26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5e26
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00498f00
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b5eb3
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5e81
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5e77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5edf
push ecx
push edx
call fcn.004bf0b8
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 0x4b5eef
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5ee5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b5ee5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
cmp byte [0x4fef02], 0
je 0x4b5f5c
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4b6830
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.00461a80
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.0049e500
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b4410
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00498f00
push 0x4e023c
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 0x4b5ff6
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b5fc4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5fba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6070
push ecx
push edx
call fcn.004bf0b8
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 0x4b602c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6022
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6070
push ecx
push edx
call fcn.004bf0b8
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 0x4b6080
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6076
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b6076
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.00479670
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00498f00
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4b610c
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4b60da
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b60d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6138
push ecx
push edx
call fcn.004bf0b8
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 0x4b6148
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b613e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b613e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
cmp byte [0x4fef02], 0
je 0x4b61b3
mov ecx, dword [ebp - 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4b6830
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.00461a80
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.0049e500
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b4410
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 0x4b6835
cmp esi, 7
ja 0x4b6201
mov ecx, 7
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
jmp 0x4b6260
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4b6214
mov eax, 0x7ffffffe
jmp 0x4b621e
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
mov dword [ebp - 0x180], edi
test esi, esi
je 0x4b62cb
lea edx, [esi - 1]
cmp esi, edx
jbe 0x4b683a
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 0x4b62cb
cmp eax, 0x2f
je 0x4b62cb
cmp esi, ecx
jae 0x4b62b2
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 0x4b62cb
push 0x5c
mov byte [ebp - 0x184], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x184]
push 1
call fcn.00460aa0
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.004b4540
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 0x4b6391
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x4b635f
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
call fcn.004b41e0
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.004b4410
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x4b63b4
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x40]
push eax
call fcn.004b41e0
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 0x4b6408
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b63fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b63fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bf0b8
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov byte [0x4fef02], 0
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x4b644d
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6443
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b67ff
push ecx
push edx
call fcn.004bf0b8
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0xa
cmova eax, dword [ebp - 0x28]
push 0x4e0244
push eax
call fcn.00498470
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
test esi, esi
jne 0x4b649d
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.004b4410
mov byte [ebp - 0x179], 0
jmp 0x4b678f
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x178]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.00462850
cmp dword [ebp - 0x158], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jne 0x4b676a
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.004b0810
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004656d0
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.004657d0
lea eax, [ebp - 0x88]
push eax
call fcn.0048eef0
push 0x4e0048
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.004b4410
lea eax, [ebp - 0xb8]
push eax
call fcn.0048ae90
push 0x4e0048
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.004b4410
lea eax, [ebp - 0x88]
push eax
call fcn.0047b270
push 0x4e0048
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.004b4410
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.0048eb50
push 0x4e0048
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.004b4410
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.004b4410
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x1d
call fcn.004b4410
push 0x4e026c
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.004617a0
lea eax, [ebp - 0x70]
push eax
call fcn.004ad7e0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
push 0x4e0098
push eax
call fcn.00498390
push 0x4dfde4
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 0x4e0048
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.00466580
lea ecx, [ebp - 0xd0]
call fcn.004b4410
lea ecx, [ebp - 0xb8]
call fcn.004b4410
lea ecx, [ebp - 0x88]
call fcn.004b4410
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x1e
call fcn.004b4410
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004b08d0
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.004657d0
lea ecx, [ebp - 0x70]
call fcn.004b4410
lea ecx, [ebp - 0x40]
call fcn.004b4410
lea ecx, [ebp - 0xe8]
call fcn.004b4410
lea ecx, [ebp - 0x100]
call fcn.004b4410
lea ecx, [ebp - 0x118]
call fcn.004b4410
lea ecx, [ebp - 0xa0]
call fcn.004b4410
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub eax, ecx
je 0x4b677e
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 0x4b67c5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b67bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b67ff
push ecx
push edx
call fcn.004bf0b8
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 0x4b680f
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b6805
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b6805
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bf0b8
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.004bf553
mov esp, ebp
pop ebp
ret
call fcn.004b4470
call fcn.004b4470
call fcn.004b44b0
int3