Function at 0x5087a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x528
push esi
push edi
call fcn.005023e0
test al, al
je 0x50884e
call fcn.00502350
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.log:
mov esi, eax
call fcn.004f8000
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x4f7b90
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0xa4]
call fcn.0050baf0
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.0050b490
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x60]
call fcn.0050bc70
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00509c00
mov ecx, eax
call fcn.004f6d20
lea ecx, [esp + 0x70]
mov edx, eax
call fcn.004f6d20
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x20]
call fcn.004f6d30
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
movzx ecx, byte [esp + 0x10c]
mov eax, ecx
xor eax, 0x57
mov word [esp + 0xf4], ax
mov eax, ecx
xor eax, 0x69
mov word [esp + 0xf6], ax
mov eax, ecx
xor eax, 0x6e
mov word [esp + 0xf8], ax
mov eax, ecx
xor eax, 0x64
mov word [esp + 0xfa], ax
mov eax, ecx
xor eax, 0x6f
mov word [esp + 0xfc], ax
mov eax, ecx
xor eax, 0x77
mov word [esp + 0xfe], ax
mov eax, ecx
xor eax, 0x20
mov word [esp + 0x100], ax
mov eax, ecx
xor eax, 0x43
mov word [esp + 0x102], ax
mov eax, ecx
xor eax, 0x6c
mov word [esp + 0x104], ax
mov eax, ecx
xor eax, 0x61
xor ecx, 0x73
mov word [esp + 0x106], ax
mov eax, dword fs:[0x2c]
mov word [esp + 0x108], cx
mov word [esp + 0x10a], cx
mov esi, dword [eax]
mov eax, dword [0x6cc9a0]
mov dword [esp + 0x14], esi
cmp eax, dword [esi + 4]
jle 0x508933
push 0x6cc9a0
call fcn.0055e917
add esp, 4
cmp dword [0x6cc9a0], 0xffffffff
jne 0x508933
push 0xc
mov ecx, 0x6bf2a0
call fcn.004f6ca0
push 0x6cc9a0
call fcn.0055e8c6
add esp, 4
mov ecx, 0x6bf2a0
call fcn.004facc0
mov ecx, dword [0x6ca288]
mov edi, eax
cmp ecx, dword [esi + 4]
jle 0x50897c
push 0x6ca288
call fcn.0055e917
add esp, 4
cmp dword [0x6ca288], 0xffffffff
jne 0x50897c
push 0x18
mov ecx, 0x6cc9b8
call fcn.004f6ca0
push 0x6ca288
call fcn.0055e8c6
add esp, 4
mov ecx, 0x6cc9b8
call fcn.004facc0
shl eax, 0x10
xor ecx, ecx
xor eax, edi
mov dword [esp + 0x80], ecx
xorps xmm0, xmm0
mov dword [esp + 0x10c], eax
xor edx, edx
movaps xmmword [esp + 0x70], xmm0
mov edi, 7
movzx eax, al
mov word [esp + 0x70], dx
mov esi, dword [esp + 0x70]
mov dword [esp + 0x84], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x6c], eax
mov ax, word [esp + edx*2 + 0xf4]
xor ax, word [esp + 0x6c]
movzx eax, ax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
cmp ecx, edi
jae 0x508a0d
lea eax, [ecx + 1]
cmp edi, 7
mov dword [esp + 0x80], eax
lea eax, [esp + 0x70]
cmova eax, esi
mov esi, dword [esp + 0x1c]
mov word [eax + ecx*2], si
xor esi, esi
mov word [eax + ecx*2 + 2], si
mov esi, dword [esp + 0x70]
jmp 0x508b0f
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x509a30
lea eax, [ecx + 1]
mov ecx, eax
mov dword [esp + 0x68], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x508a38
mov ecx, SysReAllocString
jmp 0x508a56
mov edx, edi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x508a4e
mov ecx, SysReAllocString
jmp 0x508a56
lea eax, [edi + edx]
cmp ecx, eax
cmovb ecx, eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.004fac10
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], ecx
lea ecx, [eax + eax]
mov dword [esp + 0x10], ecx
push ecx
cmp edi, 7
jbe 0x508ae6
mov eax, dword [esp + 0x74]
push eax
push esi
mov dword [esp + 0x58], eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x1c]
lea edi, [edi*2 + 2]
mov eax, dword [esp + 0x28]
add esp, 0xc
mov word [esi + ecx], ax
xor eax, eax
mov word [esi + ecx + 2], ax
mov eax, dword [esp + 0x4c]
cmp edi, 0x1000
jb 0x508ada
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509353
mov eax, ecx
push edi
push eax
call fcn.0055ec01
add esp, 8
jmp 0x508b07
lea eax, [esp + 0x74]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov word [esi + ecx], ax
xor eax, eax
mov word [esi + ecx + 2], ax
mov edx, dword [esp + 0xc]
mov dword [esp + 0x70], esi
inc edx
mov dword [esp + 0xc], edx
cmp edx, 0xc
jae 0x508b2c
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
jmp 0x5089c5
cmp dword [esp + 0x84], 7
lea eax, [esp + 0x70]
lea ecx, [esp + 0x70]
cmova eax, esi
mov dword [esp + 0x68], eax
call fcn.004f74e0
push dword [esp + 0x18]
lea ecx, [esp + 0x164]
push str.a.ico
call fcn.00510300
lea ecx, [esp + 0xf4]
push ecx
mov ecx, eax
call fcn.00509a40
mov dword [esp + 0x6c], eax
cmp dword [eax + 0x14], 7
jbe 0x508b7c
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0xf4]
call fcn.004f74e0
push dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push str.Error
call fcn.00510300
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00509a40
lea ecx, [esp + 0x20]
call fcn.004f74e0
movzx esi, byte [esp + 0xe4]
mov eax, esi
mov dword [esp + 0xc], esi
xor eax, 0x43
mov edx, esi
mov word [esp + 0x9c], ax
xor edx, 0x6f
mov eax, esi
mov dword [esp + 0x1c], edx
xor eax, 0x75
mov word [esp + 0x9e], dx
mov word [esp + 0xa0], ax
mov ecx, esi
mov eax, esi
mov word [esp + 0xaa], dx
xor eax, 0x6c
xor ecx, 0x20
mov dword [esp + 0x54], eax
mov edi, esi
mov word [esp + 0xa2], ax
xor edi, 0x74
mov eax, esi
mov dword [esp + 0x10], ecx
xor eax, 0x64
mov word [esp + 0xa6], cx
mov dword [esp + 0x4c], eax
mov word [esp + 0xa4], ax
mov eax, esi
xor eax, 0x6e
mov word [esp + 0xae], cx
mov dword [esp + 0x50], eax
mov ecx, esi
mov word [esp + 0xa8], ax
xor ecx, 0x72
mov eax, dword [esp + 0xc]
xor esi, 0x65
xor eax, 0x67
mov word [esp + 0xac], di
mov word [esp + 0xb4], ax
mov eax, dword [esp + 0xc]
mov edx, eax
xor eax, 0x73
mov word [esp + 0xba], di
mov dword [esp + 0x18], eax
xor edx, 0x69
mov word [esp + 0xb8], ax
mov word [esp + 0xc2], di
mov edi, dword [esp + 0xc]
mov eax, edi
mov word [esp + 0xb0], cx
xor eax, 0x68
mov word [esp + 0xbe], cx
mov ecx, dword [esp + 0x10]
mov word [esp + 0xc0], cx
mov word [esp + 0xc8], cx
mov ecx, dword [esp + 0x50]
mov word [esp + 0xc4], ax
mov eax, edi
mov word [esp + 0xce], cx
xor eax, 0x77
mov ecx, dword [esp + 0x4c]
mov word [esp + 0xd0], cx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0xb2], si
mov word [esp + 0xb6], dx
mov word [esp + 0xbc], si
mov word [esp + 0xc6], si
mov word [esp + 0xca], ax
mov word [esp + 0xcc], dx
mov esi, dword [esp + 0x14]
mov word [esp + 0xd4], ax
mov eax, dword [esp + 0x10]
mov word [esp + 0xd6], ax
mov eax, edi
xor eax, 0x63
mov word [esp + 0xd2], cx
mov word [esp + 0xd8], ax
xor edi, 0x61
mov eax, dword [esp + 0x54]
mov word [esp + 0xda], ax
mov eax, dword [esp + 0x18]
mov word [esp + 0xde], ax
mov word [esp + 0xe0], ax
mov eax, dword [0x6c5460]
mov word [esp + 0xdc], di
cmp eax, dword [esi + 4]
jle 0x508da0
push 0x6c5460
call fcn.0055e917
add esp, 4
cmp dword [0x6c5460], 0xffffffff
jne 0x508da0
push 0x23
mov ecx, 0x6c7b78
call fcn.004f6ca0
push 0x6c5460
call fcn.0055e8c6
add esp, 4
mov ecx, 0x6c7b78
call fcn.004facc0
mov ecx, dword [0x6cc9b4]
mov edi, eax
cmp ecx, dword [esi + 4]
jle 0x508de9
push 0x6cc9b4
call fcn.0055e917
add esp, 4
cmp dword [0x6cc9b4], 0xffffffff
jne 0x508de9
push 0x46
mov ecx, 0x6c2d48
call fcn.004f6ca0
push 0x6cc9b4
call fcn.0055e8c6
add esp, 4
mov ecx, 0x6c2d48
call fcn.004facc0
shl eax, 0x10
xorps xmm0, xmm0
xor eax, edi
movaps xmmword [esp + 0x20], xmm0
xor edi, edi
mov dword [esp + 0xe4], eax
xor edx, edx
movzx eax, al
mov ecx, 7
mov word [esp + 0x20], dx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x508e34
mov ecx, dword [esp + 0x34]
mov ax, word [esp + edx*2 + 0x9c]
xor ax, word [esp + 0x18]
movzx eax, ax
mov dword [esp + 0xc], eax
cmp edi, ecx
jae 0x508e79
lea eax, [edi + 1]
cmp ecx, 7
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
cmova eax, esi
mov word [eax + edi*2], cx
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
jmp 0x508f7e
mov eax, SysReAllocString
mov dword [esp + 0x54], edi
sub eax, edi
cmp eax, 1
jb 0x509a30
inc edi
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x4c], edx
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x508ea8
mov ecx, SysReAllocString
jmp 0x508ecf
mov eax, edx
shr eax, 1
mov dword [esp + 0x10], eax
mov eax, SysReAllocString
sub eax, dword [esp + 0x10]
cmp edx, eax
jbe 0x508ec4
mov ecx, SysReAllocString
jmp 0x508ecf
mov eax, dword [esp + 0x10]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
call fcn.004fac10
mov edx, dword [esp + 0x54]
mov ecx, eax
mov eax, dword [esp + 0x10]
add edx, edx
cmp dword [esp + 0x4c], 7
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ecx
lea eax, [edx + ecx]
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], eax
push edx
jbe 0x508f53
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [esp + 0x4c]
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x508f47
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509353
push ecx
push esi
call fcn.0055ec01
add esp, 8
jmp 0x508f72
lea eax, [esp + 0x24]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x23
jb 0x508e30
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x508fc4
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x508fba
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509353
push ecx
push esi
call fcn.0055ec01
add esp, 8
movzx edx, byte [esp + 0xd4]
mov eax, edx
mov dword [esp + 0xc], edx
xor eax, 0x43
mov ecx, edx
mov word [esp + 0x9c], ax
xor ecx, 0x6f
mov eax, edx
mov dword [esp + 0x54], ecx
xor eax, 0x75
mov word [esp + 0x9e], cx
mov word [esp + 0xa0], ax
mov esi, edx
mov eax, edx
mov word [esp + 0xaa], cx
mov ecx, dword [esp + 0xc]
xor eax, 0x6c
mov word [esp + 0xa2], ax
mov edi, edx
mov eax, edx
xor esi, 0x20
xor eax, 0x64
mov word [esp + 0xa6], si
mov dword [esp + 0x18], eax
xor edx, 0x74
mov word [esp + 0xa4], ax
xor edi, 0x6e
mov eax, ecx
mov word [esp + 0xac], dx
xor eax, 0x63
mov word [esp + 0xb8], dx
mov word [esp + 0xb0], ax
mov eax, ecx
xor eax, 0x72
mov word [esp + 0xbe], dx
mov edx, dword [esp + 0xc]
xor ecx, 0x65
mov word [esp + 0xb2], ax
mov eax, dword [esp + 0xc]
xor eax, 0x61
mov word [esp + 0xae], si
mov word [esp + 0xb6], ax
mov eax, edx
xor eax, 0x68
mov word [esp + 0xbc], si
mov word [esp + 0xc0], ax
mov eax, edx
xor eax, 0x77
mov word [esp + 0xc4], si
mov esi, dword [esp + 0x14]
xor edx, 0x69
mov word [esp + 0xb4], cx
mov word [esp + 0xba], cx
mov word [esp + 0xc2], cx
mov ecx, dword [esp + 0x18]
mov word [esp + 0xc6], ax
mov word [esp + 0xd0], ax
mov eax, dword [0x6cc9ac]
mov word [esp + 0xcc], cx
mov ecx, dword [esp + 0x54]
mov word [esp + 0xa8], di
mov word [esp + 0xc8], dx
mov word [esp + 0xca], di
mov word [esp + 0xce], cx
cmp eax, dword [esi + 4]
jle 0x509147
push 0x6cc9ac
call fcn.0055e917
add esp, 4
cmp dword [0x6cc9ac], 0xffffffff
jne 0x509147
push 0x1b
mov ecx, 0x6ca290
call fcn.004f6ca0
push 0x6cc9ac
call fcn.0055e8c6
add esp, 4
mov ecx, 0x6ca290
call fcn.004facc0
mov ecx, dword [0x6c19bc]
mov edi, eax
cmp ecx, dword [esi + 4]
jle 0x509190
push 0x6c19bc
call fcn.0055e917
add esp, 4
cmp dword [0x6c19bc], 0xffffffff
jne 0x509190
push 0x36
mov ecx, 0x6c19c0
call fcn.004f6ca0
push 0x6c19bc
call fcn.0055e8c6
add esp, 4
mov ecx, 0x6c19c0
call fcn.004facc0
shl eax, 0x10
xorps xmm0, xmm0
xor eax, edi
movaps xmmword [esp + 0x20], xmm0
xor edi, edi
mov dword [esp + 0xd4], eax
xor edx, edx
movzx eax, al
mov ecx, 7
mov word [esp + 0x20], dx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x5091d5
mov ecx, dword [esp + 0x34]
mov ax, word [esp + edx*2 + 0x9c]
xor ax, word [esp + 0x18]
movzx eax, ax
mov dword [esp + 0xc], eax
cmp edi, ecx
jae 0x50921a
lea eax, [edi + 1]
cmp ecx, 7
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
cmova eax, esi
mov word [eax + edi*2], cx
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
jmp 0x50931b
mov eax, SysReAllocString
mov dword [esp + 0x54], edi
sub eax, edi
cmp eax, 1
jb 0x509a30
inc edi
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x50], edx
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x509249
mov ecx, SysReAllocString
jmp 0x509270
mov eax, edx
shr eax, 1
mov dword [esp + 0x14], eax
mov eax, SysReAllocString
sub eax, dword [esp + 0x14]
cmp edx, eax
jbe 0x509265
mov ecx, SysReAllocString
jmp 0x509270
mov eax, dword [esp + 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.004fac10
mov edx, dword [esp + 0x54]
mov ecx, eax
mov eax, dword [esp + 0x14]
add edx, edx
cmp dword [esp + 0x50], 7
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ecx
lea eax, [ecx + edx]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
push edx
jbe 0x5092f0
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [esp + 0x50]
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x5092e4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x509353
push ecx
push esi
call fcn.0055ec01
add esp, 8
jmp 0x50930f
lea eax, [esp + 0x24]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x1b
jb 0x5091d1
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x509363
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x509359
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x509359
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0055ec01
add esp, 8
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0xa4]
call fcn.005103f0
xorps xmm0, xmm0
mov dword [esp + 0x4c], eax
xor edi, edi
movaps xmmword [esp + 0x20], xmm0
xor edx, edx
mov ecx, 7
mov word [esp + 0x20], dx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
nop word [eax + eax]
mov ax, word [eax + 0x54]
mov ecx, 0xff
and ax, cx
mov ecx, dword [esp + 0x4c]
xor ax, word [ecx + edx*2]
mov ecx, dword [esp + 0x34]
movzx eax, ax
mov dword [esp + 0xc], eax
cmp edi, ecx
jae 0x5093f0
lea eax, [edi + 1]
cmp ecx, 7
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
cmova eax, esi
mov word [eax + edi*2], cx
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
jmp 0x5094f1
mov eax, SysReAllocString
mov dword [esp + 0x18], edi
sub eax, edi
cmp eax, 1
jb 0x509a30
inc edi
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x50], edx
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x50941f
mov ecx, SysReAllocString
jmp 0x509446
mov eax, edx
shr eax, 1
mov dword [esp + 0x14], eax
mov eax, SysReAllocString
sub eax, dword [esp + 0x14]
cmp edx, eax
jbe 0x50943b
mov ecx, SysReAllocString
jmp 0x509446
mov eax, dword [esp + 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.004fac10
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x14]
add edx, edx
cmp dword [esp + 0x50], 7
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ecx
lea eax, [edx + ecx]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
push edx
jbe 0x5094c6
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [esp + 0x50]
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x5094ba
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50952d
push ecx
push esi
call fcn.0055ec01
add esp, 8
jmp 0x5094e5
lea eax, [esp + 0x24]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x4c]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x29
jb 0x5093a0
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x50953d
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x509533
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x509533
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0055ec01
add esp, 8
mov eax, dword [esp + 0x68]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
push 0x7f00
push 0
mov dword [esp + 0x140], 0
movlpd qword [esp + 0x148], xmm0
mov dword [esp + 0x154], 0
movlpd qword [esp + 0x15c], xmm0
mov dword [esp + 0x144], 0x508770
mov dword [esp + 0x150], esi
mov dword [esp + 0x164], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x150], eax
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x509a26
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [0x6ba4f8]
mov dword [esp + 0x14], eax
mov eax, dword [0x6ba4fc]
sub eax, edi
mov dword [esp + 0x18], 0x6bc8f8
cmp eax, 0xffffffff
jne 0x5095f1
mov ecx, 0x6bc8f8
call fcn.004facc0
jmp 0x5095fc
inc eax
lea ecx, [esp + 0x18]
push eax
call fcn.004fac70
add eax, edi
mov dword [esp + 0x30], 5
xor edx, edx
mov ecx, 0x7e
div ecx
mov dword [esp + 0x50], ecx
xorps xmm0, xmm0
inc dl
movaps xmmword [esp + 0x20], xmm0
movsx cx, dl
mov edi, 7
mov dword [esp + 0x34], edi
movq qword [esp + 0x20], xmm0
mov eax, ecx
mov word [esp + 0x58], cx
xor eax, 0x59
mov word [esp + 0x5a], ax
mov eax, ecx
xor eax, 0x6f
mov edx, dword [esp + 0x58]
mov word [esp + 0x5c], ax
mov eax, ecx
xor eax, 0x6c
mov word [esp + 0x5e], ax
mov eax, ecx
xor eax, 0x6f
xor ecx, 0x76
mov word [esp + 0x60], ax
xor eax, eax
mov dword [esp + 0x28], eax
mov word [esp + 0x64], ax
mov eax, edx
xor eax, dword [esp + 0x5a]
mov word [esp + 0x62], cx
movzx ecx, ax
lea eax, [esp + 0x20]
mov word [eax], cx
mov eax, edx
xor eax, dword [esp + 0x5c]
cmp dword [esp + 0x34], edi
movzx ecx, ax
lea eax, [esp + 0x20]
cmova eax, dword [esp + 0x20]
push 0
push esi
push 0
mov word [eax + 2], cx
mov eax, edx
xor eax, dword [esp + 0x6a]
cmp dword [esp + 0x40], edi
movzx ecx, ax
lea eax, [esp + 0x2c]
cmova eax, dword [esp + 0x2c]
push 0
push dword [esp + 0x64]
push dword [esp + 0x28]
mov word [eax + 4], cx
mov eax, edx
xor eax, dword [esp + 0x78]
cmp dword [esp + 0x4c], edi
movzx ecx, ax
lea eax, [esp + 0x38]
cmova eax, dword [esp + 0x38]
xor edx, dword [esp + 0x7a]
push 0
push 0
mov word [eax + 6], cx
lea eax, [esp + 0x40]
cmp dword [esp + 0x54], edi
movzx ecx, dx
cmova eax, dword [esp + 0x40]
push SysReAllocString
mov word [eax + 8], cx
lea eax, [esp + 0x44]
cmp dword [esp + 0x58], edi
cmova eax, dword [esp + 0x44]
push eax
push dword [esp + 0x90]
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
mov ecx, dword [esp + 0x34]
cmp ecx, 7
jbe 0x509762
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x509758
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x509758
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055ec01
add esp, 8
test edi, edi
je 0x509a26
push 0x3a4
lea eax, [esp + 0x18c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x170], 0x3bc
mov dword [esp + 0x174], edi
mov dword [esp + 0x178], 1
mov dword [esp + 0x17c], 7
push 0x8050
push 0
push 0
push 1
push dword [esp + 0x7c]
mov dword [esp + 0x194], 0x8001
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, dword [0x6ba4f8]
mov dword [esp + 0x184], eax
mov eax, dword [0x6ba4fc]
sub eax, esi
mov dword [esp + 0x18], 0x6bc8f8
cmp eax, 0xffffffff
jne 0x5097f7
mov ecx, 0x6bc8f8
call fcn.004facc0
jmp 0x509802
inc eax
lea ecx, [esp + 0x18]
push eax
call fcn.004fac70
add eax, esi
mov dword [esp + 0x30], 5
xor edx, edx
xorps xmm0, xmm0
div dword [esp + 0x50]
movaps xmmword [esp + 0x20], xmm0
mov esi, 7
inc dl
mov dword [esp + 0x34], esi
movsx cx, dl
movq qword [esp + 0x20], xmm0
mov eax, ecx
mov word [esp + 0x58], cx
xor eax, 0x59
mov word [esp + 0x5a], ax
mov eax, ecx
xor eax, 0x6f
mov edx, dword [esp + 0x58]
mov word [esp + 0x5c], ax
mov eax, ecx
xor eax, 0x6c
mov word [esp + 0x5e], ax
mov eax, ecx
xor eax, 0x6f
xor ecx, 0x76
mov word [esp + 0x60], ax
xor eax, eax
mov dword [esp + 0x28], eax
mov word [esp + 0x64], ax
mov eax, edx
xor eax, dword [esp + 0x5a]
mov word [esp + 0x62], cx
movzx ecx, ax
lea eax, [esp + 0x20]
mov word [eax], cx
mov eax, edx
xor eax, dword [esp + 0x5c]
cmp dword [esp + 0x34], esi
movzx ecx, ax
lea eax, [esp + 0x20]
cmova eax, dword [esp + 0x20]
mov word [eax + 2], cx
mov eax, edx
xor eax, dword [esp + 0x5e]
cmp dword [esp + 0x34], esi
movzx ecx, ax
lea eax, [esp + 0x20]
cmova eax, dword [esp + 0x20]
mov word [eax + 4], cx
mov eax, edx
xor eax, dword [esp + 0x60]
cmp dword [esp + 0x34], esi
movzx ecx, ax
lea eax, [esp + 0x20]
cmova eax, dword [esp + 0x20]
xor edx, dword [esp + 0x62]
mov word [eax + 6], cx
lea eax, [esp + 0x20]
cmp dword [esp + 0x34], esi
movzx ecx, dx
cmova eax, dword [esp + 0x20]
mov word [eax + 8], cx
lea eax, [esp + 0x20]
cmp dword [esp + 0x34], esi
cmova eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x18c]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp ecx, esi
jbe 0x50994a
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x509940
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x509940
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055ec01
add esp, 8
lea eax, [esp + 0x170]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x509a26
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0x56c7b4
push 0x56c7b8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0xc
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0x56c7c0
push str.CONOUT_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0xc
call fcn.00503d40
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x130], 0
push 0
lea eax, [esp + 0x11c]
movaps xmmword [esp + 0x11c], xmm0
push eax
movq qword [esp + 0x130], xmm0
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x509a16
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x5099e2
lea eax, [esp + 0x170]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.004df5a0
int3