Function at 0x417740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x480128
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a1620]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4a5cbc]
mov esi, dword [edi + 0xbc]
lea ebp, [eax*4]
push ebp
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2e8]
push 0xc
push eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004026d0
add esp, 0xc
test eax, eax
je case.0x4177c9.3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 4
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
cmp eax, 0x34
ja case.0x4177c9.3
movzx edx, byte [eax + 0x41856c]
jmp dword [edx*4 + 0x41852c]
mov eax, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x68
push ebp
push eax
call fcn.004027b0
add esp, 0xc
add eax, 0xc
push eax
lea ecx, [esp + 0x24]
mov edx, edi
call fcn.00419e70
xor esi, esi
mov dword [esp + 0x38], 0
cmp dword [edi + 0x1728], esi
jle 0x417857
lea esp, [esp]
test esi, esi
jl 0x4178c4
cmp esi, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + esi*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x417892
add esi, 1
cmp esi, dword [edi + 0x1728]
jl 0x417810
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x4177c9.3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp case.0x4177c9.3
push 0x80004005
call fcn.004012e0
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov eax, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
add esp, 0xc
push 0x14
push ebp
push eax
call fcn.004027b0
add esp, 0xc
jmp 0x417857
jmp fcn.0044c4a2
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x68
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 0xc
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 1
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x417947
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x68
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 0xc
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
xor esi, esi
mov dword [esp + 0x38], 2
cmp dword [edi + 0x1728], esi
jle 0x417a72
test esi, esi
jl 0x4178c4
cmp esi, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [edi + 0x1724]
lea ecx, [edx + esi*4]
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x417a42
add esi, 1
cmp esi, dword [edi + 0x1728]
jl 0x4179f5
jmp 0x417a72
mov eax, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push eax
call fcn.004027b0
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
add esp, 0xc
push 0x14
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x417873
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 3
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x417b15
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 4
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x417bf7
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 5
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
lea esp, [esp]
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x417ce0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 6
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x417dc2
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 7
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x417ea4
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 8
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x417f86
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x68
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 0xc
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
xor esi, esi
mov dword [esp + 0x38], 9
cmp dword [edi + 0x1728], esi
jle 0x417a72
test esi, esi
jl 0x4178c4
cmp esi, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [edi + 0x1724]
lea ecx, [edx + esi*4]
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x417a42
add esi, 1
cmp esi, dword [edi + 0x1728]
jl 0x418023
jmp 0x417a72
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004331a0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
cmp dword [edi + 0x1728], ebx
jle case.0x4177c9.3
lea ebx, [ebx]
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x44
push ebp
push edx
call fcn.004027b0
mov edx, eax
add esp, 0xc
lea eax, [esp + 0x2c]
add edx, 0xe
push eax
mov ecx, edi
call fcn.00419fd0
test ebx, ebx
mov dword [esp + 0x38], 0xa
mov eax, dword [eax]
jl 0x4178c4
cmp ebx, dword [edi + 0x1728]
jge 0x4178c4
mov ecx, dword [edi + 0x1724]
lea esi, [ecx + ebx*4]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x417888
mov ecx, dword [esi]
push eax
push ecx
call fcn.00466452
add esp, 8
test eax, eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x2c]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41813a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x418155
add ebx, 1
cmp ebx, dword [edi + 0x1728]
jl 0x4180a0
jmp case.0x4177c9.3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push ecx
call fcn.004027b0
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
add esp, 0xc
push 0x14
push ebp
push edx
call fcn.004027b0
add esp, 0xc
jmp case.0x4177c9.3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x68
push ebp
push eax
call fcn.004027b0
add esp, 0xc
add eax, 0xc
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
xor esi, esi
mov dword [esp + 0x38], 0xb
cmp dword [edi + 0x1728], esi
jle 0x41825c
nop
test esi, esi
jl 0x4178c4
cmp esi, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + esi*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x41822c
add esi, 1
cmp esi, dword [edi + 0x1728]
jl 0x4181d0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x417863
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov eax, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
add esp, 0xc
push 0x14
push ebp
push eax
call fcn.004027b0
add esp, 0xc
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x417863
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 0xc
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4179ab
nop
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4179a3
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x4182f0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
jmp 0x4184c3
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x68
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 0xc
push eax
lea ecx, [esp + 0x28]
mov edx, edi
call fcn.00419e70
xor esi, esi
mov dword [esp + 0x38], 0xd
cmp dword [edi + 0x1728], esi
jle 0x417a72
lea ecx, [ecx]
test esi, esi
jl 0x4178c4
cmp esi, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [edi + 0x1724]
lea ecx, [edx + esi*4]
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x417a42
add esi, 1
cmp esi, dword [edi + 0x1728]
jl 0x418390
jmp 0x417a72
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x2c]
mov edx, edi
call fcn.00419e70
mov dword [esp + 0x38], 0xe
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
push ebp
push edx
call fcn.004027b0
mov esi, dword [edi + 0xbc]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
shl eax, 0x10
push 0x14
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2e8]
push ebp
push eax
shl ebx, 0x10
call fcn.004027b0
mov esi, eax
xor ebp, ebp
add esp, 0xc
shl esi, 0x10
cmp dword [edi + 0x1728], ebp
jle 0x4184b7
test ebp, ebp
jl 0x4178c4
cmp ebp, dword [edi + 0x1728]
jge 0x4178c4
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x1724]
xor eax, eax
test edx, edx
setne al
lea ecx, [ecx + ebp*4]
test eax, eax
je 0x417888
mov ecx, dword [ecx]
push edx
push ecx
call fcn.00466452
add esp, 8
test eax, eax
je 0x4184af
add ebp, 1
cmp ebp, dword [edi + 0x1728]
jl 0x418462
jmp 0x4184b7
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0xffffffff
je case.0x4177c9.3
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push ecx
push ebx
push 0x10000
push 0x100000
push 0x20025
push 0x1a
mov esi, edi
call fcn.00415a20
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret