Function at 0x429d90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552578
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5b3e64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, byte [esi + 0x183]
movzx ecx, byte [esi + 0x182]
push eax
xor ebx, ebx
push ebx
push 0x100
push ecx
mov ecx, dword [esi + 0x320]
mov dword [ebp - 0x14], ebx
call fcn.00403000
movzx edx, byte [esi + 0x183]
movzx ecx, byte [esi + 0x182]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x3e00
push ecx
mov ecx, dword [esi + 0x320]
call fcn.004025d0
movzx edx, byte [esi + 0x183]
movzx ecx, byte [esi + 0x182]
movzx edi, word [ebp - 0x14]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x3e01
push ecx
mov ecx, dword [esi + 0x320]
shl edi, 0x10
call fcn.004025d0
movzx edx, word [ebp - 0x14]
movzx eax, byte [esi + 0x183]
shl edx, 8
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x320]
add edi, edx
movzx edx, byte [esi + 0x182]
push 0x3e02
push edx
call fcn.004025d0
movzx eax, word [ebp - 0x14]
movzx ecx, byte [esi + 0x183]
add edi, eax
mov eax, 0x55555556
imul edi
mov dword [ebp - 0x44], edi
mov edi, edx
shr edi, 0x1f
add edi, edx
movzx edx, byte [esi + 0x182]
mov eax, edi
push ecx
mov ecx, dword [esi + 0x320]
sar eax, 0x10
and eax, 0xff
push eax
push 0x3e00
push edx
mov dword [ebp - 0x14], eax
call fcn.00403000
movzx ecx, byte [esi + 0x183]
movzx edx, byte [esi + 0x182]
mov ax, di
shr ax, 8
movzx eax, ax
push ecx
mov ecx, dword [esi + 0x320]
push eax
push 0x3e01
push edx
mov dword [ebp - 0x14], eax
call fcn.00403000
movzx ecx, byte [esi + 0x183]
and edi, 0xf0
mov eax, edi
push ecx
push eax
mov dword [ebp - 0x14], eax
push 0x3e02
movzx edx, byte [esi + 0x182]
mov ecx, dword [esi + 0x320]
push edx
call fcn.00403000
movzx eax, byte [esi + 0x183]
movzx ecx, byte [esi + 0x182]
push eax
push 1
push 0x100
push ecx
mov ecx, dword [esi + 0x320]
call fcn.00403000
lea ecx, [ebp - 0xd]
fld dword [ebp + 8]
fstp dword [ebp - 0x28]
call fcn.0040d580
movzx eax, word [esi + 0x17c]
movzx edi, word [esi + 0x17e]
mov dword [ebp - 0x34], edi
imul edi, eax
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edi
call fcn.00534fe2
add esp, 4
mov ebx, eax
push 0x561fcc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 1
call fcn.00401aa0
mov edx, dword [ebp + 0x18]
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 1
push 1
mov ecx, esi
call fcn.00411200
mov eax, dword [esi + 0x230]
push 0
push eax
mov ecx, esi
call fcn.00426160
mov ecx, dword [esi + 0x230]
push edi
push ecx
push ebx
call fcn.00535910
add esp, 0xc
push ebx
mov ecx, esi
call fcn.00410bf0
fstp dword [ebp - 0x20]
lea ecx, [ebp - 0xe]
call fcn.0040d580
push 0x64
mov byte [ebp - 4], 2
call fcn.00534fe2
push 0x64
mov edi, eax
push 0
push edi
call fcn.005350f0
push 0x64
call fcn.00534fe2
push 0x64
mov ebx, eax
push 0
push ebx
call fcn.005350f0
push 0x64
call fcn.00534fe2
mov dword [ebp - 0x40], eax
push 0x64
push 0
push eax
call fcn.005350f0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
add esp, 0x30
push 1
push edx
mov edx, dword [ebp - 0x1c]
push ebx
push edi
push 5
push eax
push ecx
push edx
lea ecx, [ebp - 0xe]
call fcn.0040e590
fld dword [edi]
fstp dword [ebp - 0x18]
xor edx, edx
fld dword [edi + 0x30]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x18]
lea ecx, [edx + edx*4]
fld dword [edi + ecx*4]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a03f
fld dword [edi + ecx*4]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
fld dword [edi + ecx*4 + 4]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a056
fld dword [edi + ecx*4 + 4]
fstp dword [ebp - 0x18]
cmp edx, 2
jne 0x42a072
fld dword [ebp - 0x24]
fld dword [edi + 0x30]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a089
fld dword [edi + 0x30]
fstp dword [ebp - 0x24]
jmp 0x42a089
fld dword [ebp - 0x18]
fld dword [edi + ecx*4 + 8]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a089
fld dword [edi + ecx*4 + 8]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
fld dword [edi + ecx*4 + 0xc]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a0a0
fld dword [edi + ecx*4 + 0xc]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
fld dword [edi + ecx*4 + 0x10]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a0b7
fld dword [edi + ecx*4 + 0x10]
fstp dword [ebp - 0x18]
inc edx
cmp edx, 5
jl 0x42a027
mov eax, dword [ebp - 0x40]
push eax
call fcn.00534af7
push edi
call fcn.00534af7
push ebx
call fcn.00534af7
fld dword [ebp - 0x20]
push ecx
fstp qword [esp + 8]
lea ecx, [ebp - 0x2c]
fld dword [ebp + 8]
fstp qword [esp]
push str._4.4f__4.4f
push ecx
call fcn.004053e0
mov edi, dword [ebp - 0x2c]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x40], esp
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x42a12b
cmp eax, dword [edi - 0x10]
jne 0x42a12b
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x42a15d
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x42a144
call fcn.00401170
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00534a2f
add esp, 0x10
mov edx, dword [ebp - 0x40]
add ebx, 0x10
mov ecx, esi
mov dword [edx], ebx
call fcn.00413370
fld dword [ebp - 0x20]
fld st(0)
fld dword [ebp + 0xc]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [ebp - 0x40]
fld dword [ebp - 0x40]
fabs
fstp dword [ebp - 0x40]
fld dword [ebp - 0x40]
fstp dword [ebp - 0x40]
fld dword [ebp - 0x40]
fld dword [esi + 0x34bc]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a1af
fld dword [ebp - 0x24]
fld dword [esi + 0x34c0]
fcompp
fnstsw ax
test ah, 5
jp 0x42a1b6
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
fld dword [ebp + 8]
fst dword [ebp + 8]
mov dword [ebp - 0x18], 0
fstp dword [ebp - 0x24]
je 0x42a1ee
fld st(0)
fld dword [ebp + 0x10]
fld st(0)
faddp st(2)
fxch st(1)
fst qword [ebp - 0x4c]
fcomp st(3)
fnstsw ax
test ah, 5
jnp 0x42a24f
fsubr st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
je 0x42a251
fstp st(0)
sub esp, 0x10
fstp qword [esp + 8]
lea eax, [ebp - 0x2c]
fld dword [ebp - 0x28]
fstp qword [esp]
push str._4.4f__4.4f
push eax
call fcn.004053e0
mov edi, dword [ebp - 0x2c]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp + 0xc], esp
mov dword [ebp + 0xc], esp
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x42a6b9
cmp eax, dword [edi - 0x10]
jne 0x42a6b9
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x42a6eb
fstp st(0)
fcompp
fnstsw ax
test ah, 5
jp 0x42a3c0
mov edi, edi
fld dword [ebp - 0x24]
inc dword [ebp - 0x18]
cmp dword [esi + 0xc48], 0
fst dword [ebp + 8]
fsub dword [ebp + 0x14]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
jne 0x42a30c
mov eax, dword [esi + 0x274]
mov edi, dword [esi + eax*4 + 0xc4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
lea eax, [esi + eax*4 + 0xc4]
mov eax, dword [edx + 0x10]
sub esp, 8
mov dword [ebp - 0x40], esp
fstp dword [esp + 4]
mov dword [ebp - 0x40], esp
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x42a2c6
cmp eax, dword [edi - 0x10]
jne 0x42a2c6
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42a2f7
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x42a13f
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00534a2f
add esp, 0x10
mov edx, dword [ebp - 0x40]
add ebx, 0x10
mov dword [edx], ebx
mov ecx, dword [esi + 0x320]
call fcn.004032f0
jmp 0x42a31b
call fcn.00535170
push eax
push 3
mov ecx, esi
call fcn.00428d80
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
push 1
push 1
mov ecx, esi
call fcn.00411200
cmp eax, 1
jne 0x42a387
mov al, byte [esi + 0x180]
cmp al, 2
jne 0x42a360
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x230]
push edx
push eax
push ecx
lea ecx, [ebp - 0xd]
call fcn.0040d590
jmp 0x42a387
cmp al, 1
je 0x42a370
cmp al, 6
je 0x42a370
cmp al, 7
je 0x42a370
cmp al, 3
jne 0x42a387
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x230]
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push ecx
call fcn.00535910
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.00410bf0
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fld dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
je 0x42a50e
cmp dword [ebp - 0x18], 0xf
jl 0x42a260
mov dword [ebp - 0x18], 0
jmp 0x42a519
fld dword [ebp + 8]
inc dword [ebp - 0x18]
cmp dword [esi + 0xc48], 0
fst dword [ebp - 0x24]
fadd dword [ebp + 0x14]
fstp dword [ebp + 8]
fld dword [ebp + 8]
jne 0x42a46c
mov eax, dword [esi + 0x274]
mov edi, dword [esi + eax*4 + 0xc4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
lea eax, [esi + eax*4 + 0xc4]
mov eax, dword [edx + 0x10]
sub esp, 8
mov dword [ebp - 0x40], esp
fstp dword [esp + 4]
mov dword [ebp - 0x40], esp
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x42a426
cmp eax, dword [edi - 0x10]
jne 0x42a426
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42a457
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x42a13f
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00534a2f
add esp, 0x10
mov edx, dword [ebp - 0x40]
add ebx, 0x10
mov dword [edx], ebx
mov ecx, dword [esi + 0x320]
call fcn.004032f0
jmp 0x42a47b
call fcn.00535170
push eax
push 3
mov ecx, esi
call fcn.00428d80
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
push 1
push 1
mov ecx, esi
call fcn.00411200
cmp eax, 1
jne 0x42a4e7
mov al, byte [esi + 0x180]
cmp al, 2
jne 0x42a4c0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x230]
push edx
push eax
push ecx
lea ecx, [ebp - 0xd]
call fcn.0040d590
jmp 0x42a4e7
cmp al, 1
je 0x42a4d0
cmp al, 6
je 0x42a4d0
cmp al, 7
je 0x42a4d0
cmp al, 3
jne 0x42a4e7
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x230]
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push ecx
call fcn.00535910
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.00410bf0
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fld dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 5
jnp 0x42a50e
cmp dword [ebp - 0x18], 0xf
jl 0x42a3c0
mov dword [ebp - 0x18], 0
jmp 0x42a519
fstp st(0)
fld dword [ebp - 0x24]
inc dword [ebp - 0x18]
cmp dword [esi + 0xc48], 0
fadd dword [ebp + 8]
fmul qword [0x564740]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
jne 0x42a5c8
mov eax, dword [esi + 0x274]
mov edi, dword [esi + eax*4 + 0xc4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
lea eax, [esi + eax*4 + 0xc4]
mov eax, dword [edx + 0x10]
sub esp, 8
mov dword [ebp + 0x14], esp
fstp dword [esp + 4]
mov dword [ebp + 0x14], esp
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x42a582
cmp eax, dword [edi - 0x10]
jne 0x42a582
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42a5b3
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x42a13f
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00534a2f
add esp, 0x10
mov edx, dword [ebp + 0x14]
add ebx, 0x10
mov dword [edx], ebx
mov ecx, dword [esi + 0x320]
call fcn.004032f0
jmp 0x42a5d7
call fcn.00535170
push eax
push 3
mov ecx, esi
call fcn.00428d80
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
push 1
push 1
mov ecx, esi
call fcn.00411200
cmp eax, 1
jne 0x42a643
mov al, byte [esi + 0x180]
cmp al, 2
jne 0x42a61c
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x230]
push edx
push eax
push ecx
lea ecx, [ebp - 0xd]
call fcn.0040d590
jmp 0x42a643
cmp al, 1
je 0x42a62c
cmp al, 6
je 0x42a62c
cmp al, 7
je 0x42a62c
cmp al, 3
jne 0x42a643
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x230]
mov ecx, dword [ebp - 0x1c]
push edx
push eax
push ecx
call fcn.00535910
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.00410bf0
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fld qword [ebp - 0x4c]
fcom st(1)
fnstsw ax
test ah, 1
jne 0x42a66f
fld dword [ebp + 0xc]
fsub dword [ebp + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jnp 0x42a6a1
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x42a680
fld dword [ebp - 0x28]
fstp dword [ebp + 8]
jmp 0x42a695
fld dword [ebp + 0xc]
fsub dword [ebp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x42a695
fld dword [ebp - 0x28]
fstp dword [ebp - 0x24]
cmp dword [ebp - 0x18], 0xf
jl 0x42a517
jmp 0x42a6a3
fstp st(0)
cmp dword [ebp - 0x18], 0xf
jne 0x42a1f0
mov dword [ebp - 0x30], 0
jmp 0x42a1f0
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x42a6d2
call fcn.00401170
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00534a2f
add esp, 0x10
mov edx, dword [ebp + 0xc]
add ebx, 0x10
mov ecx, esi
mov dword [edx], ebx
call fcn.00413370
mov edi, dword [ebp - 0x44]
movzx ecx, byte [esi + 0x183]
movzx edx, byte [esi + 0x182]
mov eax, edi
push ecx
mov ecx, dword [esi + 0x320]
sar eax, 0x10
and eax, 0xff
push eax
push 0x3e00
push edx
mov dword [ebp - 0x14], eax
call fcn.00403000
movzx ecx, byte [esi + 0x183]
movzx edx, byte [esi + 0x182]
mov ax, di
shr ax, 8
movzx eax, ax
push ecx
mov ecx, dword [esi + 0x320]
push eax
push 0x3e01
push edx
mov dword [ebp - 0x14], eax
call fcn.00403000
movzx ecx, byte [esi + 0x183]
movzx edx, byte [esi + 0x182]
push ecx
mov ecx, dword [esi + 0x320]
and edi, 0xf0
mov eax, edi
push eax
push 0x3e02
push edx
mov dword [ebp - 0x14], eax
call fcn.00403000
push 0
push 1
mov ecx, esi
call fcn.004108b0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00534af7
mov edi, dword [ebp + 0x20]
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x42a7aa
fld dword [ebp - 0x28]
jmp 0x42a7b0
fld dword [esi + 0x2c64]
fstp dword [edi]
call fcn.004364a2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a7cc
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
fld dword [edi]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp + 0xc]
push str._4.4f
push ecx
mov byte [ebp - 4], 3
call fcn.004053e0
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
add esp, 0xc
mov dword [ebp + 8], esp
mov dword [ebp + 0x18], esp
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x42a828
cmp eax, dword [edi]
jne 0x42a828
mov ebx, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x42a85d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x42a841
call fcn.00401170
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
lea ecx, [edi + 0x10]
push ecx
push eax
lea edx, [ebx + 0x10]
push edx
call fcn.00534a2f
add esp, 0x10
mov eax, dword [ebp + 0x18]
add ebx, 0x10
mov dword [eax], ebx
push ecx
mov ecx, esp
mov dword [ebp + 0x18], esp
push str.FullWellLightSource_Log.txt
mov byte [ebp - 4], 4
call fcn.00401aa0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00420440
mov byte [ebp - 4], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a8a1
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0xe]
mov byte [ebp - 4], 1
call fcn.00408840
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a8d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
call fcn.00408840
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c