Function at 0x51cca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65abc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b8
push ebx
push esi
push edi
mov esi, ecx
push str.ED38E9E9_1830_4f40_AA5A_6352BB5BC8F3
lea ecx, [ebp - 0x4c]
call fcn.005b2cd0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x4c]
call fcn.005b2cb0
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x66eba8
call fcn.0040bea0
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.0051a6f0
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x1000000
cmp eax, ecx
je 0x51cd20
push ecx
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call fcn.00444650
add esp, 8
cmp eax, ebx
jl 0x51cd44
cmp dword [ebp - 0x10], 6
jb 0x51cd44
mov eax, 1
jmp 0x51cd46
xor eax, eax
mov byte [esi + 0x1f98], al
test al, al
je 0x51cd5e
mov edi, 0x81
mov dword [ebp - 0x10], 0x77
jmp 0x51cd6a
mov edi, 0x80
mov dword [ebp - 0x10], 0xfb
mov eax, dword [esi + 4]
push ebx
push ecx
mov ecx, esp
push ebx
push 0x5600184c
push ebx
push ecx
mov dword [ecx], ebx
mov ecx, esp
mov dword [ecx], 0x6f0228
push eax
lea ecx, [esi + 0x3f0]
call fcn.0050ae70
mov ecx, dword [esi + 4]
push ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
lea ecx, [esi + 0x3f0]
call fcn.00503330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetMenu]
push 0
push 0
push 0
push ecx
movzx ecx, word [ebp - 0x10]
mov dword [esi + 0x1fa8], eax
mov eax, esp
mov dword [eax], ecx
lea ecx, [esi + 0x3f0]
mov dword [ebp - 0x40], esp
call fcn.00523120
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [esi + 4]
push 0xe800
push 0x5600096c
push 0
push edi
push eax
mov ecx, esi
call fcn.00502d00
push 0
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.00504d30
mov ecx, dword [0x716734]
mov eax, dword [esi + 4]
push 0
push ecx
push 0xe800
push eax
push 0x64
push 0x64
push 0
push 0
push 0x56002640
push 0
push str.ReBarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x51ce4b
mov dword [ebp - 0x10], 0
jmp 0x51ce87
xor ecx, ecx
lea edx, [ebp - 0x48]
push edx
push ecx
push 0x404
mov dword [ebp - 0x44], ecx
push eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x44], ecx
call edi
test eax, eax
jne 0x51ce81
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 0x10], 0
jmp 0x51ce87
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0x418
push eax
mov dword [esi + 0x2c], edx
call edi
push 0x4c
lea ecx, [ebp - 0x98]
push 0
push ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x9c], 0x50
call fcn.006100a0
add esp, 0xc
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x98], 0x371
mov dword [ebp - 0x94], 4
jle 0x51cee0
mov dword [ebp - 0x94], 0x204
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push 0
push 0
push 0x40c
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x7c], edx
call edi
add eax, 0xeb00
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0
test eax, eax
jle 0x51cf5c
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
dec eax
push eax
push 0x41d
push edx
call edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x28]
push edx
push 0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x14]
push 0x41d
push eax
mov dword [ebp - 0x74], ecx
call edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], ecx
jmp 0x51cf83
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
lea edx, [ebp - 0x9c]
push edx
push 0xffffffffffffffff
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
push 0x40a
push eax
call edi
test eax, eax
je 0x51cfbe
mov ecx, dword [ebp - 0x14]
push 0
push 0
push 0x455
push ecx
call edi
mov edx, dword [ebp - 0x14]
or eax, 0x10
push eax
push 0
push 0x454
push edx
call edi
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x2c]
push 0
push 0
push 0x418
push ecx
mov dword [ebp - 0x10], eax
call edi
push 0x4c
lea edx, [ebp - 0x98]
push 0
push edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x9c], 0x50
call fcn.006100a0
add esp, 0xc
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x98], 0x371
mov eax, 4
jle 0x51d00d
mov eax, 0x204
mov ecx, dword [ebp - 0x10]
push 0
or eax, 1
push 0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x18]
push 0x40c
push ecx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x7c], eax
call edi
add eax, 0xeb00
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0
test eax, eax
jle 0x51d092
lea edx, [ebp - 0x28]
push edx
dec eax
push eax
mov eax, dword [ebp - 0x18]
push 0x41d
push eax
call edi
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push 0
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x18]
push 0x41d
push ecx
mov dword [ebp - 0x74], edx
call edi
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
jmp 0x51d0b9
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x9c]
push eax
push 0xffffffffffffffff
push 0x40a
push ecx
call edi
test eax, eax
je 0x51d0f4
mov edx, dword [ebp - 0x18]
push 0
push 0
push 0x455
push edx
call edi
or eax, 0x10
push eax
mov eax, dword [ebp - 0x18]
push 0
push 0x454
push eax
call edi
mov eax, dword [0x716738]
push 0x80
lea edx, [ebp - 0x2bc]
push edx
push 0xe001
xor ecx, ecx
push eax
mov word [ebp - 0x2bc], cx
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 4]
push 0xe801
push ecx
lea edx, [ebp - 0x2bc]
push edx
push 0x56000100
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
push 0x80
mov dword [esi + 0x30], eax
mov dword [esi + 0x5fc], eax
lea ecx, [ebp - 0x3bc]
push ecx
mov byte [esi + 0x1f99], 1
mov edx, dword [0x716738]
push 0xe001
xor eax, eax
push edx
mov word [ebp - 0x3bc], ax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 0x5fc]
lea eax, [ebp - 0x3bc]
push eax
push 0x100
push 0x40b
push ecx
call edi
mov edx, dword [0x716734]
mov eax, dword [esi + 0x5fc]
mov ecx, dword [0x6f0234]
push 0
push edx
mov edx, dword [0x6f0230]
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov eax, dword [0x6f022c]
sub ecx, eax
push ecx
mov ecx, dword [0x6f0228]
sub edx, ecx
push edx
push eax
push ecx
push 0x40000001
push 0
push 0x67234c
push 0
call edi
push str.4CC7C91F_7758_4ece_8225_0D568ECCB3ED
push 0
push 0
mov dword [esi + 0x294], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0x3e8
mov dword [esi + 0x1fac], eax
mov eax, dword [esi + 4]
push 0
push eax
mov dword [esi + 0x1fb0], 0
call dword [sym.imp.USER32.dll_SetTimer]
push 0xff00
push 0xe900
push 0
mov ecx, esi
call fcn.00516800
and byte [esi + 0x518], 0xfe
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
mov dword [esi + 0x2c8], eax
lea ecx, [esi + 0x2a4]
call fcn.0050e740
mov edx, dword [0x716734]
push 0
push edx
push 0x1ac
mov eax, 0x64
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], eax
mov eax, dword [esi + 0x2a8]
push eax
push 0x32
push 0x5a
push 0x32
push 0xa
push 0
push 0x679760
push 0x67230c
push 0
mov dword [ebp - 0xb8], 0x32
mov dword [ebp - 0xbc], 0xa
call edi
mov eax, dword [esi + 8]
push eax
lea ecx, [esi + 0x3f0]
call fcn.005032a0
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, edi
je 0x51d2bc
mov ecx, 8
lea edx, [ebp - 0x44]
mov word [ebp - 0x40], cx
push edx
lea ecx, [esi + 0x27c]
mov dword [ebp - 0x44], eax
call fcn.00459540
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x7143fc
call fcn.00448530
mov ebx, eax
lea ecx, [ebp - 0x40]
lea eax, [esi + 0x244]
push ecx
lea ecx, [ebx + 4]
mov dword [ebp - 0x40], eax
call fcn.00594900
lea eax, [ebp - 0x40]
lea edx, [esi + 0x248]
push eax
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x40], edx
call fcn.00594900
push ecx
mov eax, esp
mov ecx, esi
mov dword [ebp - 0x40], esp
mov dword [eax], 7
call fcn.005196e0
mov edx, dword [0x716738]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push 0x80
lea ecx, [ebp - 0x1bc]
push ecx
mov eax, 0x64
push 0x8e
push edx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
call ebx
mov eax, dword [esi + 4]
push 0
push ecx
mov ecx, esp
push 0x80
lea edi, [esi + 0x620]
mov dword [edi + 0x24], eax
mov dword [ecx], 0
push 0x96cf0000
lea ecx, [ebp - 0x1bc]
push ecx
push ecx
mov ecx, esp
lea edx, [ebp - 0xac]
mov dword [ecx], edx
push eax
mov ecx, edi
call fcn.0050b0b0
lea eax, [esi + 0xb64]
lea ecx, [esi + 0xb54]
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], ecx
cmp dword [edi + 0x28], 0
je 0x51d3ab
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov ecx, dword [edi + 4]
fldz
mov edx, dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
fstp dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x24], 0xc8
mov dword [ebp - 0x20], 0x64
call fcn.00519870
mov edx, dword [0x716738]
push 0x80
lea ecx, [ebp - 0x1bc]
push ecx
push 0x128
push edx
call ebx
push edi
push ecx
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
push 0x80
mov dword [ebp - 0x20], 0xc8
mov dword [ebp - 0x1c], 0x32
mov dword [esi + 0xaa8], eax
mov dword [ecx], 0
push 0x84cf0000
lea ecx, [ebp - 0x1bc]
push ecx
push ecx
mov ecx, esp
lea edx, [ebp - 0x28]
mov dword [ecx], edx
push eax
lea ecx, [esi + 0xa84]
call fcn.0050b130
cmp dword [esi + 0xaac], 0
je 0x51d482
mov eax, dword [esi + 0xa84]
mov edx, dword [eax + 0x10]
lea ecx, [esi + 0xa84]
call edx
mov ecx, dword [esi + 4]
fldz
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
fstp dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xa88]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
push edx
mov ecx, esi
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0xc8
mov dword [ebp - 0x20], 0x2d
call fcn.00519870
cmp dword [0x71476c], 0
jne 0x51d5af
push 0x100
lea eax, [ebp - 0x1bc]
push 0
push eax
call fcn.006100a0
mov edx, dword [0x716738]
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x1bc]
push ecx
push 0x9a
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, dword [0x714770]
xor ecx, ecx
test eax, eax
sets cl
lea edx, [ebp - 0x1bc]
dec ecx
and ecx, eax
push ecx
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00405ab0
mov ebx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [ebx - 4], 1
jle 0x51d573
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov ebx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x1fa4]
push eax
call fcn.004078d0
mov byte [ebp - 4], 0
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d5c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x51d5c1
push 8
lea ecx, [esi + 0x1fa4]
push 0x67758c
call fcn.00401670
mov ecx, dword [esi + 4]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esi + 0x24c]
call fcn.00503650
mov edx, dword [0x716738]
push 0x2040
push 0
push 0xff000000
push 1
push 0x10
push 0xe5
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageW]
mov dword [esi + 0x278], eax
mov dword [0x714024], esi
call fcn.005bc840
mov ebx, eax
push 0x14
xor eax, eax
mov edi, 7
push str.StaffcopCheckUpdates
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.00407940
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x34]
push ecx
push 1
mov ecx, ebx
call fcn.005bc3b0
test eax, eax
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x20], 8
jb 0x51d666
mov edx, dword [ebp - 0x34]
push edx
call fcn.0060faf6
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
test bl, bl
je 0x51d693
push eax
push eax
push eax
push 0x517db0
push eax
push eax
call fcn.00615455
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004ffe40
cmp dword [0x7143c0], 0
je 0x51d6bc
push 0x7143c0
push 0
push 0
push 0
mov ecx, esi
call fcn.0050b9b0
push 1
call fcn.00618b3a
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x5c2]
push edx
mov word [ebp - 0x5c4], cx
call fcn.006100a0
lea eax, [ebp - 0x5c4]
push 0x104
push eax
call fcn.005bd730
add esp, 0x14
test eax, eax
je 0x51d7c4
lea ecx, [ebp - 0x5c4]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040bea0
mov byte [ebp - 4], 6
push 0x66f168
lea ecx, [ebp - 0x14]
call fcn.0040b4e0
push str.SCFNT.TTF
lea ecx, [ebp - 0x40]
call fcn.0040aab0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00428b00
add esp, 0xc
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51d75b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x51d773
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov eax, dword [ebp - 0x10]
push 0
push 0x10
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51d7a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d7c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.GlobalRUN_6B2E1794_EC2D_4F22_A72D_84DF470DCF8A
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
push 0
push 0x51c090
push 0
push 0
mov dword [esi + 0x2a0], eax
call fcn.00615455
add esp, 0x18
mov dword [esi + 0x29c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.005b2cc0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10