Function at 0xa47520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xad569d
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jne 0xa4758e
mov edi, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
lea eax, [edi - 1]
cmp eax, edx
mov dword [esp + 0x18], edx
jle 0xa4758b
call fcn.00a2e820
mov ecx, dword [esp + 0x18]
sub edi, ecx
xor edx, edx
div edi
add edx, ecx
mov dword [esi + 0x44], edx
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0xa47ac4
mov edi, dword [eax + 0xc]
call fcn.00a2e820
cdq
xor eax, edx
sub eax, edx
cdq
mov ecx, 0x3e8
idiv ecx
cmp edi, edx
jle 0xa47ac4
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x48], ebx
jbe 0xa47ac4
lea ecx, [ecx]
mov eax, dword [esi + 0x5c]
mov ecx, 1
mov dword [esp + 0x1c], ecx
cmp dword [eax + 0x10], ecx
jne 0xa475eb
mov edx, dword [eax + 0x88]
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jle 0xa47ab2
lea esp, [esp]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push eax
push 0x465
push ecx
call edi
cmp eax, 0xffffffff
jne 0xa47640
jmp 0xa47620
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
push ebx
push edx
push 0x465
push eax
call edi
cmp eax, 0xffffffff
je 0xa47620
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
dec ecx
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0xa4766d
call fcn.00a2e820
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x10]
xor edx, edx
div ecx
add edx, dword [esp + 0x10]
jmp 0xa4766f
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, eax
lea edx, [ecx + 2]
mov dword [esp + 0x14], edx
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0xa47690
sub ecx, dword [esp + 0x14]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x7c]
call fcn.00a11c90
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
push 1
push eax
push 0x465
push ecx
call edi
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
xor ecx, ecx
mov word [esp + 0x6c], cx
mov ecx, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
lea edx, [ecx + 2]
mov di, word [ecx]
add ecx, 2
cmp di, bx
jne 0xa476e1
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x70]
call fcn.00a11c90
mov dword [esp + 0x498], ebx
mov edx, dword [esi + 0x5c]
mov eax, dword [edx + 0x10]
cmp eax, 1
jne 0xa47716
cmp dword [esi + 0x58], ebx
jne 0xa47a90
cmp eax, 6
jne 0xa4773b
push str.AD418965_BA62_4742_83D1_650C23B92721
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x5c]
cmp dword [eax + 0x10], 8
jne 0xa478c2
inc dword [0xafb538]
push 8
call fcn.00a7acb0
add esp, 4
push 0xf8
mov edi, eax
call fcn.00a7acb0
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x498], 1
cmp eax, ebx
je 0xa47783
push eax
call fcn.00a4af40
mov dword [esp + 0x10], eax
jmp 0xa47787
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x10]
mov byte [esp + 0x498], bl
mov ecx, dword [esi + 0x5c]
push 0x14
mov dword [edx], ecx
push str.abk__eiie3lgliec
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00a111b0
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x4c]
push eax
add ecx, 0x58
mov byte [esp + 0x4a4], 2
call fcn.00a11650
mov byte [esp + 0x498], bl
cmp dword [esp + 0x5c], 0x10
jb 0xa477ee
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00a7ac28
add esp, 4
mov edx, dword [0xafb538]
mov eax, dword [esp + 0x10]
push edi
push ecx
mov dword [edi], edx
mov dword [edi + 4], eax
call fcn.00a4a6b0
add esp, 4
call fcn.00a37220
push ebx
push ebx
push edi
push 0xa47100
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1fe
lea edx, [esp + 0x8a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x90], cx
call fcn.00a827a0
mov eax, dword [0xafb538]
add esp, 0xc
push eax
push str.EEFE71E9_8125_4b08_A99B_76C1FFF5DC0A__d
lea edx, [esp + 0x8c]
call fcn.00a4ab50
add esp, 8
lea ecx, [esp + 0x84]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00a36c20
movzx edi, word [eax + 0xf4]
call fcn.00a36c20
movzx eax, word [eax + 0xf6]
mov ecx, dword [0xafc7ec]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
movzx edi, di
movzx eax, ax
push edi
push eax
call edx
mov eax, dword [esi + 0x34]
push ebx
push 0x3e8
push 0x2715
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esi + 0x5c]
cmp dword [ecx + 0x10], 9
jne 0xa47a59
inc dword [0xafb53c]
push 8
call fcn.00a7acb0
add esp, 4
push 0xf8
mov edi, eax
call fcn.00a7acb0
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x498], 3
cmp eax, ebx
je 0xa4790a
push eax
call fcn.00a4af40
mov dword [esp + 0x10], eax
jmp 0xa4790e
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x498], bl
mov edx, dword [esi + 0x5c]
push 0x1c
push str.KFE8334820K99__fe_RD____hdw
lea ecx, [esp + 0x2c]
mov dword [eax], edx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00a111b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x58
mov byte [esp + 0x4a4], 4
call fcn.00a11650
mov byte [esp + 0x498], bl
cmp dword [esp + 0x3c], 0x10
jb 0xa47975
mov edx, dword [esp + 0x28]
push edx
call fcn.00a7ac28
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [0xafb53c]
push edi
push ecx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [edi], eax
mov dword [edi + 4], ecx
call fcn.00a4a6b0
add esp, 4
call fcn.00a37220
push ebx
push ebx
push edi
push 0xa48a70
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1fe
lea eax, [esp + 0x28a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x290], dx
call fcn.00a827a0
mov ecx, dword [0xafb53c]
add esp, 0xc
push ecx
push str.B68ECD09_E1A7_433c_9B79_8B54003D12EC__d
lea edx, [esp + 0x28c]
call fcn.00a4ab50
add esp, 8
lea edx, [esp + 0x284]
push edx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00a36c20
movzx edi, word [eax + 0xf4]
call fcn.00a36c20
movzx eax, word [eax + 0xf6]
mov ecx, dword [0xafc7ec]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
movzx edi, di
movzx eax, ax
push edi
push eax
call edx
mov eax, dword [esi + 0x34]
push ebx
push 0x3e8
push 0x2715
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x498], 0xffffffff
cmp dword [esp + 0x80], 8
jb 0xa47a7b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00a7ac28
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0xa47600
jmp 0xa47ab2
mov dword [esp + 0x498], 0xffffffff
cmp dword [esp + 0x80], 8
jb 0xa47ab2
mov edx, dword [esp + 0x6c]
push edx
call fcn.00a7ac28
add esp, 4
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x48]
jb 0xa475d0
mov eax, dword [esi + 0x50]
add eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00a7a967
mov esp, ebp
pop ebp
ret