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

Disassembly:
push 0xffffffffffffffff
push 0x4ac1df
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe0]
xor ebx, ebx
cmp ebp, ebx
je 0x406da5
cmp word [ebp], bx
je 0x406da5
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0xdc]
push eax
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
push ebx
push ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.0041ff50
add esp, 0xc
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.0041fa10
add esp, 0x18
xor esi, esi
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
xor eax, eax
lea edx, [esp + 0x90]
push edx
push ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov eax, esp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0xd4], 2
mov dword [esp + 0x40], esp
cmp ecx, ebx
je 0x40678e
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40678e
add eax, 4
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.0041d7e0
add esp, 0x14
lea edx, [esp + 0x30]
mov byte [esp + 0xcc], 3
cmp edx, eax
je 0x4067bf
mov eax, dword [eax]
push eax
mov ecx, edx
call fcn.00404b10
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov byte [esp + 0xcc], 2
cmp eax, ebx
je 0x4067f8
mov edx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x4067f8
cmp edx, ebx
je 0x4067f8
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
cmp esi, ebx
jne 0x406846
mov esi, dword [esp + 0xd4]
push esi
call fcn.00404250
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0xcc], 1
call fcn.00453d80
lea ecx, [esp + 0x30]
mov byte [esp + 0xcc], bl
call fcn.00453d80
lea ecx, [esp + 0x18]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00453d80
jmp 0x406db5
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp eax, 2
jne 0x40690a
mov dword [esp + 0x20], ebx
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xd0], 4
call fcn.00404b10
mov ecx, dword [esp + 0xe4]
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x40]
push edx
mov edx, dword [eax + 0x18]
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax]
mov byte [esp + 0xcc], 5
cmp eax, ebx
je 0x4068a6
push eax
lea ecx, [esp + 0x2c]
call fcn.00404b10
mov eax, dword [esp + 0x34]
mov byte [esp + 0xcc], 4
cmp eax, ebx
je 0x4068df
mov edx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x4068df
cmp edx, ebx
je 0x4068df
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
lea eax, [edi + 4]
mov byte [esp + 0xcc], 2
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x40690a
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp eax, 3
jne 0x406c9c
mov dword [esp + 0x2c], ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 6
call fcn.00404b10
mov esi, dword [esp + 0xe4]
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ebx
xor ebp, ebp
mov dword [esp + 0x38], ebp
mov edi, dword [esp + 0x2c]
mov byte [esp + 0xcc], 8
cmp esi, 0xffffffff
je 0x406c01
jmp 0x406978
mov ecx, dword [esp + 0xbc]
xor edx, edx
cmp edx, ecx
sbb eax, eax
not eax
and eax, ecx
cmp eax, ecx
jae 0x4069a4
mov edx, dword [esp + 0xb8]
lea ecx, [ecx]
cmp esi, dword [edx + eax*4]
je 0x40699c
inc eax
cmp eax, ecx
jb 0x406990
jmp 0x4069a4
cmp eax, ecx
jb 0x406c01
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xbc]
call fcn.00417dd0
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x80]
push eax
push 0x10
push esi
mov ecx, edi
call edx
test al, al
je 0x4069d4
mov byte [esp + 0x34], 0x10
jmp 0x406a14
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x80]
push ecx
push 0x13
push esi
mov ecx, edi
call edx
test al, al
je 0x4069f3
mov byte [esp + 0x34], 0x13
jmp 0x406a14
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x80]
push ecx
push 0x11
push esi
mov ecx, edi
call edx
test al, al
je 0x406c01
mov byte [esp + 0x34], 0x11
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push 0xffffffffffffffff
push ebx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
push eax
lea eax, [esp + 0x8c]
push eax
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
mov ecx, edi
call edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.0041c6d0
add esp, 0x24
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xcc], 9
cmp ecx, ebx
je 0x406bb7
cmp ebp, ebx
je 0x406aa8
push ecx
mov eax, esp
mov dword [eax], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], esp
cmp ecx, ebx
je 0x406a9a
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x406a9a
add eax, 4
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x6c]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x28], ebx
jne 0x406acf
cmp ecx, ebx
je 0x406acf
mov dword [esp + 0x28], ecx
add ecx, 4
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
mov ecx, dword [esp + 0x1c]
cmp byte [esp + 0x34], 0x11
jne 0x406b67
or eax, 0xffffffff
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x78]
push eax
call edx
test al, al
je 0x406bca
cmp dword [esp + 0x78], 0xffffffff
je 0x406bca
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov esi, ecx
cmp ebp, ecx
je 0x406b6f
cmp ebp, ebx
je 0x406b42
lea ecx, [ebp + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x406b3e
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x1c]
mov ebp, esi
mov dword [esp + 0x38], ebp
cmp esi, ebx
je 0x406b6f
add esi, 4
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x24]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
mov ecx, dword [esp + 0x1c]
jmp 0x406b6f
mov dword [esp + 0x20], 0xffffffff
mov byte [esp + 0xcc], 8
cmp ecx, ebx
je 0x406ba8
mov edx, ecx
add ecx, 4
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x406ba4
cmp edx, ebx
je 0x406ba4
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x20]
cmp esi, 0xffffffff
jne 0x406971
jmp 0x406c01
lea ecx, [esp + 0x1c]
mov byte [esp + 0xcc], 8
call fcn.00453d80
jmp 0x406c01
mov edx, dword [esp + 0x1c]
mov byte [esp + 0xcc], 8
cmp edx, ebx
je 0x406c01
lea eax, [edx + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x406c01
cmp edx, ebx
je 0x406c01
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax]
push 1
call edx
cmp dword [esp + 0x28], ebx
je 0x406c22
cmp esi, 0xffffffff
je 0x406c22
mov dword [esp + 0x24], ebx
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 0xa
call fcn.00404b10
mov byte [esp + 0xcc], 7
cmp ebp, ebx
je 0x406c52
lea eax, [ebp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x406c52
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
mov eax, dword [esp + 0xb8]
cmp eax, ebx
je 0x406c66
push eax
call fcn.0049ba00
add esp, 4
mov byte [esp + 0xcc], 2
cmp edi, ebx
je 0x406c95
lea ecx, [edi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x38]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, ebx
jg 0x406c95
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov ebp, dword [esp + 0xe0]
cmp dword [esp + 0x28], ebx
je 0x4067fc
cmp dword [esp + 0xe8], ebx
jne 0x406cc5
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
test al, al
je 0x4067fc
push 0xf8
mov byte [esp + 0x1b], 1
call fcn.0049c196
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
mov byte [esp + 0xcc], 0xb
cmp esi, ebx
je 0x406d2c
push ebx
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0044dec0
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0xdc], 0xc
call fcn.0044dec0
lea ecx, [esp + 0x23]
push ecx
mov ecx, esi
mov byte [esp + 0xdc], 0xb
call fcn.00406440
mov esi, eax
jmp 0x406d2e
xor esi, esi
mov byte [esp + 0xcc], 2
cmp esi, ebx
je 0x406d53
cmp byte [esp + 0x17], bl
je 0x406d53
mov edx, dword [esp + 0xe4]
push ebx
push edx
push ebp
push 2
mov ecx, esi
call fcn.00405b10
lea eax, [esp + 0x17]
push eax
push 0x11001
push esi
mov esi, dword [esp + 0xe0]
push esi
call fcn.00404f10
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xcc], 1
call fcn.00453d80
lea ecx, [esp + 0x30]
mov byte [esp + 0xcc], bl
call fcn.00453d80
lea ecx, [esp + 0x18]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00453d80
jmp 0x406db5
mov esi, dword [esp + 0xd4]
push esi
call fcn.00404250
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret