Function at 0x475b20
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x51140d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x4c], esi
lea ebx, [esi + 0x18]
lea edi, [esi + 0x14]
push edi
lea ecx, [ebx + 0x18]
call fcn.00409df0
mov ecx, ebx
call fcn.0045f510
push edi
lea ecx, [esi + 0x64]
call fcn.00409df0
mov edi, esi
lea ecx, [esi + 0x4c]
mov dword [edi + 0x50], ebx
call fcn.0045f870
test al, al
jne 0x475bb1
movzx eax, byte [edi + 0x11d]
mov ecx, dword [edi + 0x60]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x475ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x476201
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x20], esi
mov byte [ebp + 0x24], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.0048b350
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
push 0
push 0
call fcn.0048b460
cmp dword [edi + 4], 7
jne 0x475ce3
mov eax, dword [esi + 0xe0]
lea ebx, [esi + 0xe0]
mov dword [ebp + 0x50], 0
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x28], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x476216
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp + 0x48], eax
mov byte [ebp - 4], 3
mov eax, 0x535f40
lea ecx, [ebp + 0x48]
test eax, 0xffff0000
jne 0x475c66
movzx eax, ax
push eax
call fcn.004043d0
jmp 0x475c72
push 0x10
push 0x535f40
call fcn.00403870
mov byte [ebp - 4], 4
lea eax, [ebp + 0x50]
mov esi, dword [ebp + 0x28]
mov ecx, esi
push eax
lea eax, [ebp + 0x48]
push eax
push 0
call dword [0x525578]
mov ecx, ebx
call esi
mov bl, al
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x475cbc
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov edi, dword [ebp + 0x4c]
test bl, bl
je 0x475ce0
mov eax, dword [ebp + 0x50]
cmp eax, 2
jne 0x475cd4
mov dword [edi + 4], 8
jmp 0x475ce0
cmp eax, 3
jne 0x475ce0
mov dword [edi + 4], 9
mov esi, dword [ebp + 0x5c]
mov eax, dword [edi + 4]
mov dword [ebp], eax
cmp eax, 8
je 0x475cf7
cmp eax, 9
jne 0x475e74
mov edx, dword [ebp + 0x18]
xor ecx, ecx
xor edi, edi
mov dword [ebp + 0x48], ecx
xor ebx, ebx
test edx, edx
jle 0x476188
xor esi, esi
mov dword [ebp + 0x50], esi
test esi, esi
js 0x476220
add esi, dword [ebp + 0x14]
mov dword [ebp + 0x10], esi
cmp byte [esi + 0x15d], 0
jne 0x475e3d
cmp byte [esi + 0x15e], 0
jne 0x475e3d
cmp byte [esi + 0x15f], 0
jne 0x475e3d
cmp dword [ebp], 9
jne 0x475d58
test byte [esi + 0x94], 1
je 0x475e3d
mov ecx, esi
mov byte [esi + 0x15d], 1
call fcn.004689d0
cmp eax, 1
jne 0x475d6c
inc ebx
inc edi
test byte [esi + 0x94], 1
mov dword [ebp + 0x28], edi
je 0x475dbd
mov edi, dword [esi + 0x13c]
test edi, edi
je 0x475dba
mov esi, dword [ebp + 0x28]
nop word [eax + eax]
mov ecx, edi
mov byte [edi + 0x15d], 1
call fcn.004689d0
mov edi, dword [edi + 0x13c]
lea ecx, [ebx + 1]
cmp eax, 1
cmovne ecx, ebx
inc esi
mov ebx, ecx
test edi, edi
jne 0x475d90
mov dword [ebp + 0x28], esi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x28]
xor ecx, ecx
cmp dword [esi + 0x14c], ecx
jle 0x475df4
test ecx, ecx
js 0x476220
cmp ecx, dword [esi + 0x14c]
jge 0x476220
mov eax, dword [esi + 0x148]
mov eax, dword [eax + ecx*4]
inc ecx
mov byte [eax + 0x15e], 1
cmp ecx, dword [esi + 0x14c]
jl 0x475dc7
cmp byte [esi + 0x144], 0
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x18]
je 0x475e3d
inc ecx
cmp ecx, edx
jge 0x475e3a
mov esi, dword [ebp + 0x50]
add esi, 0x16c
test esi, esi
js 0x476220
cmp ecx, edx
jge 0x476220
mov eax, dword [ebp + 0x14]
inc ecx
mov byte [eax + esi + 0x15e], 1
add esi, 0x16c
mov edx, dword [ebp + 0x18]
cmp ecx, edx
jl 0x475e11
mov ecx, dword [ebp + 0x48]
mov esi, dword [ebp + 0x50]
inc ecx
add esi, 0x16c
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x50], esi
cmp ecx, edx
jl 0x475d10
test edi, edi
je 0x476188
mov esi, dword [ebp + 0x5c]
cmp byte [esi + 0x84], 0
je 0x475e71
test ebx, ebx
je 0x476188
mov edi, dword [ebp + 0x4c]
cmp byte [edi + 0x16a], 0
lea eax, [ebp + 0x14]
mov dword [ebp + 4], 0x536eb8
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
je 0x475fbc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x2c], 0x53234c
push eax
push 1
push 0
lea ecx, [ebp + 0x14]
mov word [ebp + 0x30], 0x101
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x10], 0
call fcn.0048c7c0
cmp byte [ebp + 0x30], 0
je 0x475f33
cmp byte [ebp + 0x31], 0
je 0x475f33
cmp dword [ebp + 0x44], 0
je 0x475f33
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
lea ecx, [ebp + 0x2c]
call esi
mov edi, dword [ebp + 0x44]
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov eax, dword [edi]
push 0
push 0
push 0x67
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp + 0x4c], ebx
call fcn.0048cd10
test eax, eax
je 0x475f51
mov ebx, eax
mov dword [ebp + 0x4c], ebx
cmp eax, 0xe0000008
je 0x475f6f
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x84], 0
jne 0x475f6f
mov ecx, dword [ebp + 8]
push 0
call fcn.0048c930
test eax, eax
cmovne ebx, eax
mov dword [ebp + 0x4c], ebx
cmp byte [ebp + 0x30], 0
je 0x47618d
cmp byte [ebp + 0x31], 0
je 0x47618d
cmp dword [ebp + 0x44], 0
je 0x47618d
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
lea ecx, [ebp + 0x2c]
call esi
mov edi, dword [ebp + 0x44]
push ebx
push 0x67
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
jmp 0x47618d
cmp byte [edi + 0x16b], 0
lea eax, [ebp + 4]
mov dword [ebp + 0x30], 0x533814
mov dword [ebp + 0x38], 0xffffffff
mov dword [ebp + 0x30], 0x533824
mov dword [ebp + 0x3c], eax
je 0x47608c
mov byte [ebp - 4], 8
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push esi
call fcn.004776c0
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x476027
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47601a
mov ebx, dword [ebp + 0x50]
jmp 0x476029
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp + 0x4c], eax
jmp 0x47602c
xor ebx, ebx
mov dword [ebp + 0x4c], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x533824
test eax, eax
je 0x47618d
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x47607e
lea eax, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push eax
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47607e
cmp dword [ebp + 0x50], 0x103
jne 0x47607e
push 0
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47618d
mov byte [ebp - 4], 0xa
cmp byte [edi + 0x16c], 0
je 0x4760eb
call fcn.00422820
cmp byte [eax + 0x114], 0
jne 0x4760eb
call fcn.004226e0
test al, al
je 0x4760eb
call fcn.00422820
mov ecx, 0x47
lea edi, [ebp - 0x16c]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x164], 0x47ba
jb 0x4760e5
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x5c]
call fcn.00476af0
jmp 0x4760fb
mov edi, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x5c]
lea eax, [ebp + 0x30]
mov ecx, edi
push eax
lea eax, [ebp + 0x14]
push eax
push esi
call fcn.004763e0
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x47612a
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47611d
mov ebx, dword [ebp + 0x50]
jmp 0x47612c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp + 0x4c], eax
jmp 0x47612f
xor ebx, ebx
mov dword [ebp + 0x4c], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x533824
test eax, eax
je 0x47618d
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x47617d
lea eax, [ebp + 0x50]
mov dword [ebp + 0x50], 0
push eax
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47617d
cmp dword [ebp + 0x50], 0x103
jne 0x47617d
push 0
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47618d
xor ebx, ebx
mov dword [ebp + 0x4c], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00475a70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4761f1
cmp dword [ebp + 0x18], 0
jle 0x4761e1
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x50], ecx
lea edi, [eax + ecx]
mov eax, dword [edi]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x50]
inc ebx
mov eax, dword [ebp + 0x14]
add ecx, 0x16c
mov dword [ebp + 0x50], ecx
cmp ebx, dword [ebp + 0x18]
jl 0x4761b4
mov ebx, dword [ebp + 0x4c]
push eax
call fcn.004ddca1
add esp, 4
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov eax, ebx
mov dword [ebp + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x54]
pop ebp
ret 4
push 0x80004005
call fcn.004027d0
push 0x8000000b
call fcn.004027d0
int3