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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bd20
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x74b1ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x1b4]
or ebx, 0xffffffff
test ecx, ecx
je 0x4059d9
mov edx, dword [esi + 0x1b0]
dec edx
add edx, ecx
mov ecx, dword [esi + 0x1ac]
mov eax, edx
dec ecx
shr eax, 1
and edx, 1
and ecx, eax
mov eax, dword [esi + 0x1a8]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 4], 0
mov edi, dword [eax + edx*8 + 4]
test edi, edi
je 0x4059b5
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4059b5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4059b5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add dword [esi + 0x1b4], 0xffffffff
jne 0x4059cf
mov dword [esi + 0x1b0], 0
mov ecx, dword [esi + 0x1b4]
test ecx, ecx
jne 0x405965
mov edi, dword [esi + 0x1ac]
test edi, edi
je 0x405a00
mov eax, dword [esi + 0x1a8]
dec edi
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4059fc
push 0x10
push eax
call fcn.004cd516
add esp, 8
test edi, edi
jne 0x4059e3
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x405a3f
mov eax, dword [esi + 0x1ac]
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x405a35
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x405edc
mov ecx, edi
push edx
push ecx
call fcn.004cd516
add esp, 8
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1a8], 0
push 8
push dword [esi + 0x1a4]
call fcn.004cd516
mov dword [esi + 0x1a4], 0
add esp, 8
mov ecx, dword [esi + 0x1a0]
cmp ecx, 0x10
jb 0x405aa7
mov eax, dword [esi + 0x18c]
inc ecx
cmp ecx, 0x1000
jb 0x405a9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edc
mov eax, edx
push ecx
push eax
call fcn.004cd516
add esp, 8
mov dword [esi + 0x19c], 0
mov dword [esi + 0x1a0], 0xf
mov byte [esi + 0x18c], 0
mov ecx, dword [esi + 0x188]
cmp ecx, 0x10
jb 0x405afc
mov eax, dword [esi + 0x174]
inc ecx
cmp ecx, 0x1000
jb 0x405af2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edc
mov eax, edx
push ecx
push eax
call fcn.004cd516
add esp, 8
mov dword [esi + 0x184], 0
mov dword [esi + 0x188], 0xf
mov byte [esi + 0x174], 0
mov dword [ebp - 4], 1
mov edi, dword [esi + 0x164]
test edi, edi
je 0x405b47
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x405b47
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x405b47
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea edi, [esi + 0x138]
mov dword [ebp - 4], 2
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x405b6f
mov eax, dword [ecx]
cmp ecx, edi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [edi + 0x24], 0
lea edi, [esi + 0x108]
mov dword [ebp - 4], 3
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x405b97
mov eax, dword [ecx]
cmp ecx, edi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [edi + 0x24], 0
lea edi, [esi + 0xd8]
mov dword [ebp - 4], 4
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x405bbf
mov eax, dword [ecx]
cmp ecx, edi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [edi + 0x24], 0
lea edi, [esi + 0xa8]
mov dword [ebp - 4], 5
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x405be7
mov eax, dword [ecx]
cmp ecx, edi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [edi + 0x24], 0
lea edi, [esi + 0x78]
mov dword [ebp - 4], 6
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x405c0c
mov eax, dword [ecx]
cmp ecx, edi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [edi + 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [esi + 0x58]
test edi, edi
je 0x405ccc
mov ebx, dword [esi + 0x5c]
cmp edi, ebx
je 0x405c73
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x405c58
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x405c4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edc
mov eax, edx
push ecx
push eax
call fcn.004cd516
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
add edi, 0x18
cmp edi, ebx
jne 0x405c25
mov edi, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 3
cmp ecx, 0x1000
jb 0x405cad
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x405edc
mov edi, edx
push ecx
push edi
call fcn.004cd516
mov dword [esi + 0x58], 0
add esp, 8
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x50]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040a290
push 0x40
push dword [esi + 0x50]
call fcn.004cd516
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
add esp, 8
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040a0f0
push 0x5c
push dword [esi + 0x48]
call fcn.004cd516
mov eax, dword [esi + 0x40]
lea ecx, [esi + 0x40]
add esp, 8
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040a290
push 0x40
push dword [esi + 0x40]
call fcn.004cd516
mov ebx, dword [esi + 0x34]
add esp, 8
test ebx, ebx
je 0x405e3d
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x405de4
lea edi, [ebx + 0x2c]
mov ecx, dword [edi]
cmp ecx, 0x10
jb 0x405d7b
mov eax, dword [edi - 0x14]
inc ecx
cmp ecx, 0x1000
jb 0x405d6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edc
mov eax, edx
push ecx
push eax
call fcn.004cd516
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi - 4], 0
mov dword [edi], 0xf
mov byte [edi - 0x14], 0
mov ecx, dword [edi - 0x18]
cmp ecx, 0x10
jb 0x405dc2
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x405db5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edc
mov eax, edx
push ecx
push eax
call fcn.004cd516
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi - 0x1c], 0
mov dword [edi - 0x18], 0xf
add edi, 0x30
mov byte [ebx], 0
add ebx, 0x30
cmp ebx, eax
jne 0x405d45
mov ebx, dword [esi + 0x34]
mov ecx, dword [esi + 0x3c]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 4
cmp ecx, 0x1000
jb 0x405e1e
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x405edc
mov ebx, edx
push ecx
push ebx
call fcn.004cd516
mov dword [esi + 0x34], 0
add esp, 8
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov ecx, dword [esi + 0x2c]
cmp ecx, 0x10
jb 0x405e6d
mov eax, dword [esi + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x405e63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edc
mov eax, edx
push ecx
push eax
call fcn.004cd516
add esp, 8
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
mov dword [ebp - 4], 7
or ebx, 0xffffffff
mov edi, dword [esi + 0x10]
test edi, edi
je 0x405eaf
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x405eaf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x405eaf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x405eca
lock xadd dword [ecx + 8], ebx
dec ebx
jne 0x405eca
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e9059
int3