Function at 0x476550
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x55aa3b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], ebp
cmp eax, 0xea60
jb 0x4765c4
lea ecx, [eax - 0xea60]
cmp ecx, 0x64
jge 0x4765c4
push ecx
mov ecx, edi
call fcn.00473c90
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.004052c0
mov eax, esi
jmp 0x476bbe
cmp eax, 0x9c42
ja 0x4765fb
je 0x4765e4
sub eax, 1
je case.0x476610.40011
sub eax, 1
je 0x4765e4
sub eax, 0xe
jne case.0x476610.40005
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 0x14]
push ebp
push edx
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.0x476610.40005
add eax, 0xffff63bc
cmp eax, 0x4d
ja case.0x476610.40005
movzx eax, byte [eax + 0x476c28]
jmp dword [eax*4 + 0x476bd4]
mov ecx, dword [edi + 0xbc]
push ebp
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.0046f2c0
mov eax, dword [esp + 0x60]
mov byte [esp + 0x58], 0
cmp eax, ebp
jne 0x47664a
push ebp
call fcn.0043e680
add esp, 4
jmp case.0x476610.40005
push eax
mov dword [0x5b81c8], 1
call fcn.0043e680
add esp, 4
jmp case.0x476610.40005
cmp dword [edi + 0xbc], ebp
jne 0x476683
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.004052c0
or eax, 0xffffffff
jmp 0x476bbe
mov ecx, dword [edi + 0x98]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
or ebx, 0xffffffff
push ebx
push 0x100c
push ecx
call esi
cmp eax, ebx
jne 0x4766aa
mov dword [esp + 0x58], ebx
jmp 0x476bb3
mov edx, dword [edi + 0xbc]
push ebp
push eax
mov eax, dword [edx + 0x20]
push 0x1076
push eax
call esi
lea ecx, [esp + 0x18]
mov dword [0x5b81c8], 1
mov dword [esp + 0x58], ebx
call fcn.004052c0
mov eax, 1
jmp 0x476bbe
mov ecx, edi
call fcn.004757a0
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x58], 0xffffffff
call fcn.004052c0
mov eax, esi
jmp 0x476bbe
mov ecx, edi
call fcn.004723f0
jmp case.0x476610.40005
mov ecx, dword [edi + 0xbc]
push ebp
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.0046f2c0
mov esi, dword [esp + 0x60]
mov byte [esp + 0x58], 2
cmp esi, ebp
jne 0x476759
push ebp
mov byte [esp + 0x5c], 0
call fcn.0043e680
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.004052c0
mov eax, 1
jmp 0x476bbe
lea ecx, [esi + 0x138]
call fcn.0043bf40
push esi
mov byte [esp + 0x5c], 0
call fcn.0043e680
add esp, 4
jmp case.0x476610.40005
mov ecx, dword [edi + 0xbc]
push ebp
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.0046f2c0
mov esi, dword [esp + 0x60]
mov byte [esp + 0x58], 3
push ebp
cmp esi, ebp
jne 0x4767af
mov byte [esp + 0x5c], 0
call fcn.0043e680
add esp, 4
jmp case.0x476610.40005
push 0x5b1bc8
push 0x5b06a4
push ebp
push 5
mov ecx, esi
call fcn.0043d7c0
push eax
call fcn.0051b3ef
add esp, 0x14
cmp eax, ebp
je 0x47680f
call fcn.00461020
cmp eax, 4
sete al
push esi
test al, al
je 0x47679d
mov ecx, edi
call fcn.00472f40
push esi
mov edi, eax
mov byte [esp + 0x5c], 0
call fcn.0043e680
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.004052c0
mov eax, edi
jmp 0x476bbe
mov ecx, dword [edi + 0xbc]
push esi
call fcn.00470c50
mov ecx, dword [edi + 0xbc]
push ebp
mov bl, al
call fcn.0046e170
cmp eax, ebp
je 0x476887
push ebp
call fcn.00490c50
add esp, 4
test al, al
jne 0x476887
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi + 0xc]
lea edi, [edx + edi + 4]
cmp word [eax], bp
jne 0x476860
mov eax, dword [edi + 0x10]
push eax
call fcn.004bb5c0
add esp, 4
cmp eax, ebp
jne 0x476860
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi]
push eax
push 0x10
push 0x85
push ecx
push edx
call fcn.004b7e90
push esi
mov byte [esp + 0x70], 0
call fcn.0043e680
add esp, 0x18
jmp case.0x476610.40005
test bl, bl
je 0x476764
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x48]
call fcn.004013c0
mov ebp, eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 4
call fcn.00401040
mov ebx, eax
mov eax, dword [esi + 0x658]
mov ecx, dword [0x5b9f28]
push eax
push 1
push 1
push 0x103
push ecx
mov ecx, ebp
mov byte [esp + 0x6c], 5
call fcn.004b5af0
push eax
push ebx
call fcn.00403e80
mov edx, dword [edi + 4]
mov ebx, eax
mov eax, dword [edx + 4]
lea ebp, [eax + edi + 4]
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], 0
jne 0x476906
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004bb5c0
add esp, 4
test eax, eax
jne 0x476906
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push eax
push 0x124
push ebx
push edx
call fcn.004b4390
mov ebp, vtable.cWCS.0
add esp, 0x10
lea ecx, [esp + 0x30]
mov ebx, eax
mov byte [esp + 0x58], 4
mov dword [esp + 0x30], ebp
call fcn.0049ee80
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 3
mov dword [esp + 0x40], ebp
call fcn.0049ee80
cmp ebx, 7
je 0x476764
push 0xffffffffffffffff
push str.stopTaskSet:
lea ecx, [esp + 0x2c]
call fcn.0049b4e0
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd8]
push 0
push 0xa
push eax
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 6
call fcn.0049b670
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push edx
push eax
push ecx
call fcn.0050db50
add esp, 0x18
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 3
call fcn.0049ac30
push esi
mov byte [esp + 0x5c], 0
call fcn.0043e680
add esp, 4
jmp case.0x476610.40005
mov ecx, dword [edi + 0xbc]
push ebp
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x68]
call fcn.0046f2c0
mov esi, dword [esp + 0x60]
mov byte [esp + 0x58], 7
cmp esi, ebp
je 0x476730
mov ecx, dword [edi + 0xbc]
push esi
call fcn.00470c50
push ebp
push 0x5b1bc8
push 0x5b06a4
push ebp
push 5
mov ecx, esi
mov bl, al
call fcn.0043d7c0
push eax
call fcn.0051b3ef
add esp, 0x14
cmp eax, ebp
je 0x476a1d
call fcn.00461020
cmp eax, 4
sete bl
push esi
test bl, bl
jne 0x47679d
mov ecx, edi
call fcn.00472f40
push esi
mov byte [esp + 0x5c], bl
call fcn.0043e680
add esp, 4
jmp case.0x476610.40005
lea esi, [esp + 0x18]
call fcn.00475ca0
jmp case.0x476610.40004
push 1
lea edx, [esp + 0x64]
mov dword [esp + 0x64], 3
push edx
jmp 0x476aa7
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 4
push eax
jmp 0x476aa7
mov dword [esp + 0x60], 2
jmp 0x476aa0
push 1
lea edx, [esp + 0x64]
mov dword [esp + 0x64], 1
push edx
jmp 0x476aa7
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 5
push eax
jmp 0x476aa7
mov dword [esp + 0x60], 6
push 1
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x20]
call fcn.004744b0
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x476ad9
mov ebx, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [ebx + esi*4 - 4]
dec esi
push edx
mov ecx, edi
call fcn.00472710
test al, al
je case.0x476610.40005
cmp esi, ebp
jne 0x476ac0
push 0x20
call fcn.0051a2f5
add esp, 4
mov dword [esp + 0x60], eax
mov byte [esp + 0x58], 8
cmp eax, ebp
je 0x476afc
push edi
mov ecx, eax
call fcn.00475850
mov esi, eax
jmp 0x476afe
xor esi, esi
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x18]
cmp esi, ebp
jne 0x476b18
mov dword [esp + 0x58], 0xffffffff
jmp 0x476bb7
lea eax, [esi + 0x14]
push eax
call fcn.00474470
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
push 0x476500
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov bl, 1
test esi, esi
jne 0x476b47
xor bl, bl
movzx esi, bl
jmp 0x4765ac
mov edx, dword [esp + 0x14]
push str.createNewTask_byThread
push edx
call fcn.004661d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx esi, bl
jmp 0x4765ac
mov ecx, edi
call fcn.004759e0
jmp case.0x476610.40005
call fcn.00472650
jmp case.0x476610.40005
mov ecx, edi
call fcn.00473430
jmp case.0x476610.40005
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 0x14]
push edx
call fcn.00473fc0
add esp, 4
jmp case.0x476610.40005
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 0x14]
push ebp
push edx
push ebp
call fcn.00402a40
add esp, 0xc
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004052c0
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8