Function at 0x470b5f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x470df6
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
xor ebx, ebx
inc ebx
cmp ecx, ebx
jne 0x470ba6
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push ebx
call fcn.0046cb31
cmp dword [ebp + 0x18], 0
mov dword [esi], eax
je 0x470c72
mov eax, ebx
jmp 0x470df8
cmp ecx, 2
jne 0x470bc2
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0x18], ebx
push dword [ebp + 0x10]
push ecx
mov ecx, edi
call fcn.00442ab5
jmp 0x470b93
mov eax, 0x113
cmp ecx, eax
jne 0x470be2
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push eax
call fcn.0045954a
jmp 0x470b93
mov eax, 0x312
cmp ecx, eax
jne 0x470c03
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.004395a8
mov ecx, esi
mov dword [ecx], eax
jmp 0x470b9f
mov eax, 0x800
cmp ecx, eax
jne 0x470c26
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push eax
call fcn.0045c395
jmp 0x470b93
cmp ecx, 0x706
jne 0x470c4f
mov eax, dword [ebp + 0x14]
movzx ecx, ax
push ebx
shr eax, 0x10
push eax
push ecx
mov ecx, dword [edi + 0x928]
call fcn.0043944c
mov eax, esi
and dword [eax], 0
jmp 0x470b9f
mov eax, 0x807
cmp ecx, eax
jne 0x470c75
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push eax
call fcn.0045960a
jmp 0x470b93
mov ecx, dword [ebp + 0xc]
push 0
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
lea ecx, [edi + 0x34]
call fcn.004633fb
test eax, eax
jne 0x470b9f
push eax
push esi
push dword [ebp + 0x14]
lea ecx, [edi + 0x418]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046e0bc
test eax, eax
jne 0x470b9f
push eax
push esi
push dword [ebp + 0x14]
lea ecx, [edi + 0x420]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046f589
test eax, eax
jne 0x470b9f
push eax
push esi
push dword [ebp + 0x14]
lea ecx, [edi + 0x488]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046f14d
test eax, eax
jne 0x470b9f
push eax
push esi
push dword [ebp + 0x14]
lea ecx, [edi + 0x490]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046f1b0
test eax, eax
jne 0x470b9f
push eax
push esi
push dword [ebp + 0x14]
lea ecx, [edi + 0x908]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046cd89
test eax, eax
jne 0x470b9f
lea ecx, [edi + 0x90c]
cmp dword [ebp + 0xc], ebx
jne 0x470d49
call fcn.0046f35b
jmp 0x470d66
cmp dword [ebp + 0xc], 0x803
jne 0x470d6b
xor eax, eax
push eax
push eax
push ecx
push 0x470ab3
push eax
push eax
call fcn.00478972
add esp, 0x18
and dword [esi], 0
jmp 0x470d94
mov eax, 0x809
cmp dword [ebp + 0xc], eax
jne 0x470d94
lea edx, [ebp + 0x18]
push edx
push dword [ebp + 0x14]
mov dword [ebp + 0x18], ebx
push dword [ebp + 0x10]
push eax
call fcn.00439cd8
cmp dword [ebp + 0x18], 0
mov dword [esi], eax
jne 0x470b9f
push 0
push esi
push dword [ebp + 0x14]
lea ecx, [edi + 0x918]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046cdea
test eax, eax
jne 0x470b9f
push eax
push esi
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004432a2
test eax, eax
jne 0x470b9f
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push dword [ebp + 0xc]
call fcn.0043ad10
cmp dword [ebp + 0x18], 0
mov dword [esi], eax
jne 0x470b9f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x18