Function at 0x46d570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d798
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x46db2f
mov edi, dword [ebp + 0xc]
cmp dword [edi + 8], 0
je 0x46db2f
push 0x4a9d54
push 0x42f
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x1002
push ebx
call esi
test eax, eax
jne 0x46d6a6
push 1
push 0x30
push 5
push 0x4a9d18
push ebx
call fcn.0042e650
add esp, 0x14
push 0x10
push 0x10
push 0x1036
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xa
push 2
push 0xfe
push 0x32
call esi
push eax
push 0x31
call esi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ebx, eax
push 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0x10
push 0x10
push 1
push 0x6b
push 0
call edi
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
push eax
call esi
push 0
push 0x10
push 0x10
push 1
push 0x6a
push 0
mov ebx, eax
call edi
push eax
call esi
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edi, eax
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x10]
call esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
push 1
push 0x1003
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
push ebx
call esi
push edi
call esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x24
call fcn.0046f006
mov esi, eax
mov dword [ebp - 0x2c], eax
add esp, 4
test esi, esi
je 0x46d6d0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
jmp 0x46d6d5
xor esi, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [edi + 8]
push 0xffffffffffffffeb
push ebx
mov eax, dword [eax]
mov dword [esi + 4], eax
mov dword [esi], ebx
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push 0xffffffffffffffeb
push ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 2
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [edi + 0xc]
lea ecx, [ecx + 0x4ec]
call fcn.004418d0
mov ecx, dword [edi + 8]
mov dword [ebp - 0x54], eax
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
movzx ecx, word [ecx + 0x28]
push ecx
mov ecx, eax
call fcn.0046df30
mov ecx, dword [edi + 8]
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edx
movzx eax, word [ecx + 0x28]
cmp dx, ax
jae 0x46daa6
mov dword [ebp - 0x28], edx
jmp 0x46d750
movzx eax, word [ecx + 0x28]
cmp edx, eax
jae 0x46da8c
mov esi, dword [ecx + edx*4 + 0x34]
mov dword [ebp - 0x24], esi
test esi, esi
je 0x46da8c
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x38]
push 0x48
mov byte [ebp - 4], 1
mov edi, dword [eax]
add edi, dword [ebp - 0x28]
call fcn.0046f006
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46d7c1
mov dword [ebx + 4], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
jmp 0x46d7c3
xor ebx, ebx
lea eax, [ebx + 0x2c]
push eax
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x54]
call fcn.0046c030
movdqu xmm0, xmmword [edi + 8]
add esp, 0x14
lea ecx, [ebx + 4]
movdqu xmmword [ebx + 0xc], xmm0
movq xmm0, qword [edi + 0x18]
push edi
movq qword [ebx + 0x1c], xmm0
call fcn.0046a200
mov eax, dword [edi + 4]
mov ecx, edi
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [ebx], eax
call fcn.0046a870
test eax, eax
je 0x46d8fd
mov ecx, edi
call fcn.0046a2c0
push 0x5c
push eax
mov dword [ebp - 0x14], eax
call fcn.004715e5
add esp, 8
test eax, eax
je 0x46d83c
add eax, 2
mov dword [ebp - 0x14], eax
push 0x498ab0
call fcn.0046a680
push eax
push 0x498ab0
call fcn.0046a810
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [edi + 0x24]
push 0
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
call fcn.00435d70
mov esi, eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0046a680
push eax
push dword [ebp - 0x14]
call fcn.0046a810
add esp, 0x24
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0046a380
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.0046a380
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.0046a200
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x46d8c8
call fcn.0046a850
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x46d8d8
call fcn.0046a850
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x46d8e8
call fcn.0046a850
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x46d8f8
call fcn.0046a850
mov ecx, dword [ebp - 0x34]
jmp 0x46d925
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], 0x498f30
push eax
call fcn.00435d70
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0046a200
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x46d932
call fcn.0046a850
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x88], connect
mov dword [ebp - 0x84], 0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x270]
mov eax, dword [eax + 0x274]
cmp dword [ebp - 0x24], ecx
mov dword [ebp - 0x90], eax
sbb eax, eax
mov dword [ebp - 0x6c], ebx
inc eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x80], 0
push eax
call fcn.00435dd0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.0046a200
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x46d9b1
call fcn.0046a850
lea ecx, [ebp - 0x18]
call fcn.0046a2c0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x104d
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0046a680
push eax
push dword [ebp - 0x14]
call fcn.0046a810
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
push eax
push 1
push esi
push ebx
call fcn.00436390
mov ecx, dword [ebp - 0x20]
add esp, 0x1c
mov byte [ebp - 4], 1
test ecx, ecx
je 0x46da0e
call fcn.0046a850
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
push ebx
call fcn.00436390
push 0
push dword [edi + 0x20]
lea eax, [ebp - 0x48]
push eax
call fcn.00435d70
add esp, 0x1c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0046a200
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x46da49
call fcn.0046a850
lea eax, [ebp - 0x18]
push eax
push 3
push esi
push ebx
call fcn.00436390
push edi
push 4
push esi
push ebx
call fcn.00436390
mov ecx, dword [ebp - 0x1c]
add esp, 0x20
mov byte [ebp - 4], 0
test ecx, ecx
je 0x46da73
call fcn.0046a850
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x46da86
call fcn.0046a850
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
inc edx
add dword [ebp - 0x28], 0x28
mov dword [ebp - 0x10], edx
movzx eax, word [ecx + 0x28]
cmp edx, eax
jl 0x46d750
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi + 8]
cmp word [eax + 0x28], 0
je 0x46daf2
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffff
push 1
push 0x101e
push ebx
call edi
push 0xffff
push 2
push 0x101e
push ebx
call edi
push 0xffff
push 3
push 0x101e
push ebx
call edi
push 0xffff
push 4
push 0x101e
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x58]
push eax
push 0
push esi
push 0x46cd10
push 0
push 0
call fcn.00472eb0
mov dword [esi + 0x18], eax
add esp, 0x18
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret