Function at 0x422650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59cd08
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x614b80]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
cdq
and edx, 7
xor edi, edi
add eax, edx
sar eax, 3
xor ecx, ecx
cmp dword [esi + 4], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
jle 0x4226bc
xor eax, eax
mov edx, dword [esi + 0xc]
mov dword [eax + edx + 0x28], edi
mov edx, dword [esi + 0xc]
mov dword [eax + edx + 0x24], edi
inc ecx
sub eax, 0xffffff80
cmp ecx, dword [esi + 4]
jl 0x4226a5
mov dword [esp + 0x20], edi
call fcn.0043b760
cmp dword [eax + 0x44], edi
je 0x4227c7
call fcn.0043b760
mov eax, dword [eax + 0x44]
push edi
mov ecx, eax
call fcn.00442d80
mov ebx, eax
mov dword [esp + 0x2c], ebx
cmp ebx, edi
je 0x4227c7
mov ecx, ebx
mov dword [esp + 0x14], edi
call fcn.00444e90
test eax, eax
jle 0x4227c7
jmp 0x422714
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x58], vtable.CTList_class_CCPUThread_.0
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x78], edi
call fcn.004452a0
mov ebx, dword [esp + 0x5c]
test eax, eax
jle 0x422774
cmp ebx, edi
je 0x422774
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x422774
mov ecx, dword [esi + 4]
xor edx, edx
cmp ecx, edi
jle 0x422774
mov edi, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
add eax, 4
mov edi, edi
cmp dword [eax], edi
je 0x42276e
inc edx
sub eax, 0xffffff80
cmp edx, ecx
jl 0x422760
jmp 0x422772
mov dword [esp + 0x20], edx
xor edi, edi
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x58], vtable.CTList_class_CCPUThread_.0
mov ecx, ebx
cmp ebx, edi
je 0x4227a5
lea ebx, [ebx]
mov ebx, dword [ebx + 8]
cmp ecx, edi
je 0x42279f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, ebx
cmp ebx, edi
jne 0x422790
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x14], ebx
call fcn.00444e90
cmp ebx, eax
jl 0x422710
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ecx, dword [0x627194]
push 1
push 0
mov edi, edx
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObjectEx]
test eax, eax
je 0x4229cd
mov edx, dword [esi + 0x10]
push 1
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObjectEx]
test eax, eax
je 0x422a6b
mov edi, dword [esp + 0x20]
shl edi, 7
mov eax, dword [esi + 0xc]
cmp dword [edi + eax + 0x28], 0
je 0x422827
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x422813
mov ecx, eax
mov eax, dword [esp + 0x10]
add eax, dword [edi + ecx + 0x24]
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4228be
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], edx
cdq
push edx
mov edx, dword [ebx + 0x10]
push eax
push ecx
push edx
call fcn.0057ba10
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
sbb ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
push edx
push eax
call fcn.0057b940
push 0
push 0x3e8
push edx
push eax
call fcn.0057b940
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
fild qword [esp + 0x3c]
mov edx, dword [esi + 0x14]
mov ebx, dword [ebp + 0x18]
fstp dword [edx + 0x410]
mov eax, dword [esi + 0x14]
fld dword [eax + 0x410]
fdiv qword [0x5dd080]
fstp dword [eax + 0x410]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 8]
mov dword [edi + eax + 8], esi
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x28]
mov dword [edi + ecx + 0xc], edx
mov ecx, dword [esi + 0xc]
mov dword [edi + ecx + 0x10], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [edi + edx + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + eax + 0x18], ecx
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x24]
mov dword [edi + edx + 0x1c], eax
mov edx, dword [esp + 0x30]
lea ecx, [eax + edx]
cmp ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], ecx
jl 0x422914
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xc]
sub ecx, eax
mov dword [edi + edx + 0x20], ecx
jmp 0x42291b
mov eax, dword [esi + 0xc]
mov dword [edi + eax + 0x20], edx
mov ecx, dword [esi + 0xc]
mov dword [edi + ecx + 0x24], 0
mov edx, dword [esi + 0xc]
mov dword [edi + edx + 0x28], 1
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x20]
add eax, edi
push eax
mov eax, dword [ecx + edx*4]
push eax
push 0x420cb0
call dword [sym.imp.KERNEL32.DLL_QueueUserAPC]
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
jl 0x422966
inc dword [esp + 0x28]
mov dword [esp + 0x24], 0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x4229b0
sub eax, dword [esp + 0x14]
push 0
sbb edx, dword [esp + 0x1c]
push 0x3e8
push edx
push eax
call fcn.0057ba10
mov ecx, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 0x10]
push ecx
push edx
push eax
call fcn.0057b940
mov dword [esp + 0x4c], eax
mov ecx, edx
mov eax, edi
cdq
cmp ecx, edx
jg 0x4229c9
jl 0x4229b0
cmp dword [esp + 0x4c], eax
jae 0x4229c9
mov edx, dword [0x627194]
push 1
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObjectEx]
test eax, eax
jne 0x4227f6
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
cmp edx, edi
jg 0x4229f4
jl 0x4229e2
cmp eax, dword [esp + 0x14]
jae 0x4229f4
add eax, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
cmp edx, edi
jl 0x4229e2
jg 0x4229f4
cmp eax, dword [esp + 0x14]
jb 0x4229e2
sub eax, dword [esp + 0x14]
fld dword [0x5dcf50]
mov ecx, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
push 0
push 0x3e8
sbb edx, edi
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x14]
push edx
fstp dword [ecx + 0x410]
fild dword [esp + 0x1c]
push eax
call fcn.0057ba10
mov ecx, dword [esp + 0x4c]
push ebx
push ecx
push edx
push eax
call fcn.0057b940
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
fild qword [esp + 0x3c]
fdivp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fdiv qword [0x5dd080]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
fld dword [0x5dcf50]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14