Function at 0x472268
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov ebx, eax
cmp byte [0x565168], 0
jne 0x4722a6
mov eax, dword [0x565158]
sub eax, dword [ebx]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [0x565164]
jge 0x4722a6
mov eax, dword [0x56515c]
sub eax, dword [ebx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [0x565164]
jl 0x472549
mov eax, dword [0x565148]
push eax
mov eax, dword [0x565148]
movzx ecx, byte [eax + 0x8b]
lea edx, [esp + 4]
mov eax, ebx
call fcn.0047213c
mov esi, eax
cmp byte [0x565168], 0
jne 0x4722f4
cmp dword [0x56516c], 0
je 0x4722f4
mov eax, dword [0x56515c]
push eax
call fcn.0040be8c
mov edx, eax
mov ecx, dword [0x565158]
mov eax, dword [0x56516c]
call fcn.00480218
mov eax, dword [0x565148]
cmp byte [eax + 0x8b], 0
jne 0x472310
mov byte [0x565168], 1
mov byte [esp + 4], 0
jmp 0x472323
cmp byte [0x565168], 0
setne byte [esp + 4]
mov byte [0x565168], 2
mov eax, dword [0x56514c]
cmp esi, dword [eax + 0x14]
je 0x472378
mov al, 1
call fcn.0047218c
cmp dword [0x56514c], 0
je 0x472549
mov eax, dword [0x56514c]
mov dword [eax + 0x14], esi
mov eax, dword [0x56514c]
mov edx, dword [esp]
mov dword [eax + 8], edx
mov eax, dword [0x56514c]
mov edx, dword [ebx]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [eax + 0x10], edx
xor eax, eax
call fcn.0047218c
cmp dword [0x56514c], 0
je 0x472549
mov eax, dword [0x56514c]
mov edx, dword [ebx]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [eax + 0x10], edx
mov eax, dword [0x56514c]
cmp dword [eax + 0x14], 0
je 0x4723b9
lea ecx, [esp + 8]
mov edx, ebx
mov eax, dword [0x56514c]
mov eax, dword [eax + 0x14]
call fcn.00474430
mov eax, dword [0x56514c]
mov edx, dword [esp + 8]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 0x1c], edx
mov eax, dword [ebx + 4]
push eax
mov al, 2
call fcn.0047218c
mov edx, eax
mov ecx, dword [ebx]
mov eax, dword [0x56514c]
mov edi, dword [eax]
call dword [edi + 4]
mov edi, eax
cmp dword [0x56516c], 0
je 0x472452
test esi, esi
je 0x4723f2
test byte [esi + 0x51], 0x20
jne 0x4723f2
mov eax, dword [0x56514c]
cmp byte [eax + 4], 0
je 0x472433
mov edx, edi
mov eax, dword [0x56516c]
call fcn.004801c8
mov eax, dword [0x56516c]
cmp byte [eax + 0x7a], 0
jne 0x472422
mov eax, dword [ebx + 4]
push eax
call fcn.0040be8c
mov edx, eax
mov ecx, dword [ebx]
mov eax, dword [0x56516c]
call fcn.00480218
jmp 0x472452
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [0x56516c]
call fcn.00480320
jmp 0x472452
mov eax, dword [0x56516c]
call fcn.00480394
movsx edx, di
mov eax, dword [0x55fad0]
mov eax, dword [eax]
call fcn.004be1e8
push eax
call sub.KERNEL32.DLL_CreateThread
movsx edx, di
mov eax, dword [0x55fad0]
mov eax, dword [eax]
call fcn.004be1e8
push eax
call sub.KERNEL32.DLL_CreateThread
cmp byte [0x565168], 2
jne 0x472549
test esi, esi
jne 0x472492
mov edx, dword [ebx + 4]
push edx
mov ecx, dword [ebx]
mov eax, dword [0x56514c]
mov edx, dword [eax + 0x40]
xchg edx, eax
mov si, 0xffe9
call fcn.00405190
jmp 0x4724ee
call fcn.004721c8
mov edi, eax
mov eax, dword [0x56514c]
mov dword [eax + 0x60], edi
test edi, edi
jne 0x4724c9
mov eax, dword [0x56514c]
lea edx, [eax + 0x18]
mov eax, dword [0x56514c]
mov eax, dword [eax + 0x14]
mov si, 0xffda
call fcn.00405190
mov edx, dword [0x56514c]
mov byte [edx + 0x5c], al
jmp 0x4724ee
lea ecx, [esp + 8]
mov edx, ebx
mov eax, edi
call fcn.00474430
lea edx, [esp + 8]
mov eax, edi
mov si, 0xffda
call fcn.00405190
mov edx, dword [0x56514c]
mov byte [edx + 0x5c], al
cmp dword [0x56514c], 0
je 0x472549
mov ebx, dword [0x56514c]
lea edx, [ebx + 0x64]
lea eax, [ebx + 0x4c]
mov ecx, 0x10
call fcn.0041bef4
test al, al
jne 0x472549
cmp byte [esp + 4], 0
je 0x472530
mov eax, dword [0x56514c]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x472530
mov eax, dword [0x56514c]
mov edx, dword [eax]
call dword [edx + 0x34]
mov eax, dword [0x56514c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [0x56514c]
lea esi, [eax + 0x4c]
lea edi, [eax + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x10
pop edi
pop esi
pop ebx
ret