Function at 0x5087f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x528
push esi
push edi
call fcn.00502340
test al, al
je 0x50889e
call fcn.005022b0
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.004f8030
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 0x4f7bc0
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.0050bab0
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.0050b450
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x60]
call fcn.0050bc30
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00509c50
mov ecx, eax
call fcn.004f6d50
lea ecx, [esp + 0x70]
mov edx, eax
call fcn.004f6d50
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x20]
call fcn.004f6d60
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 [0x6cc9c0]
mov dword [esp + 0x14], esi
cmp eax, dword [esi + 4]
jle 0x508983
push 0x6cc9c0
call fcn.0055ecd7
add esp, 4
cmp dword [0x6cc9c0], 0xffffffff
jne 0x508983
push 0xc
mov ecx, 0x6bf2c0
call fcn.004f6cd0
push 0x6cc9c0
call fcn.0055ec86
add esp, 4
mov ecx, 0x6bf2c0
call fcn.004facf0
mov ecx, dword [0x6ca2a8]
mov edi, eax
cmp ecx, dword [esi + 4]
jle 0x5089cc
push 0x6ca2a8
call fcn.0055ecd7
add esp, 4
cmp dword [0x6ca2a8], 0xffffffff
jne 0x5089cc
push 0x18
mov ecx, 0x6cc9d8
call fcn.004f6cd0
push 0x6ca2a8
call fcn.0055ec86
add esp, 4
mov ecx, 0x6cc9d8
call fcn.004facf0
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 0x508a5d
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 0x508b5f
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x509a80
lea eax, [ecx + 1]
mov ecx, eax
mov dword [esp + 0x68], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x508a88
mov ecx, SysReAllocString
jmp 0x508aa6
mov edx, edi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x508a9e
mov ecx, SysReAllocString
jmp 0x508aa6
lea eax, [edi + edx]
cmp ecx, eax
cmovb ecx, eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.004fac40
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 0x508b36
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 0x508b2a
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5093a3
mov eax, ecx
push edi
push eax
call fcn.0055efc1
add esp, 8
jmp 0x508b57
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 0x508b7c
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
jmp 0x508a15
cmp dword [esp + 0x84], 7
lea eax, [esp + 0x70]
lea ecx, [esp + 0x70]
cmova eax, esi
mov dword [esp + 0x68], eax
call fcn.004f7510
push dword [esp + 0x18]
lea ecx, [esp + 0x164]
push str.a.ico
call fcn.005102a0
lea ecx, [esp + 0xf4]
push ecx
mov ecx, eax
call fcn.00509a90
mov dword [esp + 0x6c], eax
cmp dword [eax + 0x14], 7
jbe 0x508bcc
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0xf4]
call fcn.004f7510
push dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push str.Error
call fcn.005102a0
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00509a90
lea ecx, [esp + 0x20]
call fcn.004f7510
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 [0x6c5480]
mov word [esp + 0xdc], di
cmp eax, dword [esi + 4]
jle 0x508df0
push 0x6c5480
call fcn.0055ecd7
add esp, 4
cmp dword [0x6c5480], 0xffffffff
jne 0x508df0
push 0x23
mov ecx, 0x6c7b98
call fcn.004f6cd0
push 0x6c5480
call fcn.0055ec86
add esp, 4
mov ecx, 0x6c7b98
call fcn.004facf0
mov ecx, dword [0x6cc9d4]
mov edi, eax
cmp ecx, dword [esi + 4]
jle 0x508e39
push 0x6cc9d4
call fcn.0055ecd7
add esp, 4
cmp dword [0x6cc9d4], 0xffffffff
jne 0x508e39
push 0x46
mov ecx, 0x6c2d68
call fcn.004f6cd0
push 0x6cc9d4
call fcn.0055ec86
add esp, 4
mov ecx, 0x6c2d68
call fcn.004facf0
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 0x508e84
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 0x508ec9
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 0x508fce
mov eax, SysReAllocString
mov dword [esp + 0x54], edi
sub eax, edi
cmp eax, 1
jb 0x509a80
inc edi
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x4c], edx
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x508ef8
mov ecx, SysReAllocString
jmp 0x508f1f
mov eax, edx
shr eax, 1
mov dword [esp + 0x10], eax
mov eax, SysReAllocString
sub eax, dword [esp + 0x10]
cmp edx, eax
jbe 0x508f14
mov ecx, SysReAllocString
jmp 0x508f1f
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.004fac40
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 0x508fa3
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 0x508f97
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5093a3
push ecx
push esi
call fcn.0055efc1
add esp, 8
jmp 0x508fc2
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 0x508e80
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x509014
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x50900a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5093a3
push ecx
push esi
call fcn.0055efc1
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 [0x6cc9cc]
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 0x509197
push 0x6cc9cc
call fcn.0055ecd7
add esp, 4
cmp dword [0x6cc9cc], 0xffffffff
jne 0x509197
push 0x1b
mov ecx, 0x6ca2b0
call fcn.004f6cd0
push 0x6cc9cc
call fcn.0055ec86
add esp, 4
mov ecx, 0x6ca2b0
call fcn.004facf0
mov ecx, dword [0x6c19dc]
mov edi, eax
cmp ecx, dword [esi + 4]
jle 0x5091e0
push 0x6c19dc
call fcn.0055ecd7
add esp, 4
cmp dword [0x6c19dc], 0xffffffff
jne 0x5091e0
push 0x36
mov ecx, 0x6c19e0
call fcn.004f6cd0
push 0x6c19dc
call fcn.0055ec86
add esp, 4
mov ecx, 0x6c19e0
call fcn.004facf0
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 0x509225
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 0x50926a
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 0x50936b
mov eax, SysReAllocString
mov dword [esp + 0x54], edi
sub eax, edi
cmp eax, 1
jb 0x509a80
inc edi
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x50], edx
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x509299
mov ecx, SysReAllocString
jmp 0x5092c0
mov eax, edx
shr eax, 1
mov dword [esp + 0x14], eax
mov eax, SysReAllocString
sub eax, dword [esp + 0x14]
cmp edx, eax
jbe 0x5092b5
mov ecx, SysReAllocString
jmp 0x5092c0
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.004fac40
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 0x509340
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 0x509334
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5093a3
push ecx
push esi
call fcn.0055efc1
add esp, 8
jmp 0x50935f
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 0x509221
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x5093b3
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x5093a9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5093a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0055efc1
add esp, 8
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0xa4]
call fcn.00510390
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 0x509440
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 0x509541
mov eax, SysReAllocString
mov dword [esp + 0x18], edi
sub eax, edi
cmp eax, 1
jb 0x509a80
inc edi
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x50], edx
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x50946f
mov ecx, SysReAllocString
jmp 0x509496
mov eax, edx
shr eax, 1
mov dword [esp + 0x14], eax
mov eax, SysReAllocString
sub eax, dword [esp + 0x14]
cmp edx, eax
jbe 0x50948b
mov ecx, SysReAllocString
jmp 0x509496
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.004fac40
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 0x509516
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 0x50950a
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50957d
push ecx
push esi
call fcn.0055efc1
add esp, 8
jmp 0x509535
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 0x5093f0
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x50958d
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x509583
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x509583
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0055efc1
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], 0x5087c0
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 0x509a76
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], 0x6bc918
cmp eax, 0xffffffff
jne 0x509641
mov ecx, 0x6bc918
call fcn.004facf0
jmp 0x50964c
inc eax
lea ecx, [esp + 0x18]
push eax
call fcn.004faca0
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 0x5097b2
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x5097a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5097a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055efc1
add esp, 8
test edi, edi
je 0x509a76
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], 0x6bc918
cmp eax, 0xffffffff
jne 0x509847
mov ecx, 0x6bc918
call fcn.004facf0
jmp 0x509852
inc eax
lea ecx, [esp + 0x18]
push eax
call fcn.004faca0
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 0x50999a
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x509990
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x509990
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055efc1
add esp, 8
lea eax, [esp + 0x170]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x509a76
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 0x56c7f4
push 0x56c7f8
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 0x56c800
push str.CONOUT_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0xc
call fcn.00503d90
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 0x509a66
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 0x509a32
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.004df5d0
int3