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

Disassembly:
push 0xffffffffffffffff
push 0x454e18
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x468dc0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468dc0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040a9f0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x128]
lea edx, [esp + 0x1c]
push edx
call eax
xor ebp, ebp
push 0xffffffffffffffff
mov dword [esp + 0x84], ebp
xor ecx, ecx
push ebp
mov word [esp + 0x48], cx
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
call fcn.00401e90
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
cmp eax, 8
jb 0x40b84d
mov ebx, edx
cmp edx, ebp
je 0x40b5c7
mov ecx, edx
cmp eax, 8
jae 0x40b5ad
lea ecx, [esp + 0x40]
cmp ecx, ebx
ja 0x40b5c7
mov ecx, edx
cmp eax, 8
jae 0x40b5bc
lea ecx, [esp + 0x40]
mov esi, dword [esp + 0x50]
lea ecx, [ecx + esi*2]
cmp ebx, ecx
jbe 0x40b5d4
call fcn.00436eb7
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
lea edi, [esp + 0x3c]
cmp eax, 8
jb 0x40b856
mov esi, edx
cmp edx, ebp
je 0x40b60c
mov ecx, edx
cmp eax, 8
jae 0x40b5f2
lea ecx, [esp + 0x40]
cmp ecx, esi
ja 0x40b60c
cmp eax, 8
mov eax, edx
jae 0x40b601
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x50]
lea eax, [eax + edx*2]
cmp esi, eax
jbe 0x40b611
call fcn.00436eb7
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040d730
mov edx, dword [eax]
mov eax, dword [eax + 4]
push ebx
mov dword [esp + 0x18], edx
mov byte [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push edi
push ecx
push edx
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00411880
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub eax, ecx
xor ebx, ebx
sar eax, 2
add esp, 0x14
xor edi, edi
cmp eax, ebx
jbe 0x40b79b
cmp edi, eax
jb 0x40b672
call fcn.00436eb7
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + edi*4]
mov ebp, 7
xor edx, edx
mov eax, ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], dx
lea esi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40b690
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00401f90
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x5c]
mov esi, 8
cmp dword [esp + 0x70], esi
jae 0x40b6c5
lea eax, [esp + 0x5c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 2
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x45cbc0
mov word [ecx + 4], ax
call fcn.00401f90
call fcn.0040d1b0
mov eax, dword [esp + 0x60]
add esp, 0x20
cmp dword [esp + 0x54], esi
jae 0x40b6fd
lea eax, [esp + 0x40]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 2
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x45cbc0
mov word [ecx + 4], dx
call fcn.00401f90
call fcn.0040d1b0
mov esi, dword [esp + 0x90]
mov ebp, dword [esp + 0x7c]
add esp, 0x20
mov eax, ebp
cmp esi, 8
jae 0x40b73d
lea eax, [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
call fcn.0040e680
cmp eax, 0xffffffff
jne 0x40b85f
mov byte [esp + 0x80], 1
cmp esi, 8
jb 0x40b76a
push ebp
call fcn.00429048
add esp, 4
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x5c], ax
mov eax, edx
sub eax, ecx
inc edi
sar eax, 2
xor ebx, ebx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
cmp edi, eax
jb 0x40b672
cmp dword [esp + 0x54], 8
jb 0x40b7b7
mov edx, dword [esp + 0x40]
push edx
call fcn.00429048
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov dword [esp + 0x80], 0xffffffff
cmp ecx, ebx
je 0x40b813
mov edi, edx
mov esi, ecx
cmp ecx, edx
je 0x40b80a
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40b7e1
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00429048
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00429048
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00436b18
add esp, 0x70
ret
lea ebx, [esp + 0x40]
jmp 0x40b5a2
lea esi, [esp + 0x40]
jmp 0x40b5e7
mov edi, 8
mov eax, ebp
cmp esi, edi
jae 0x40b86e
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x40b87d
lea eax, [esp + 0x44]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x1e
mov esi, 7
xor ebx, ebx
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.IsSupportedID_Found_OK_:_s___s
mov word [ecx + 4], dx
call fcn.00401f90
call fcn.0040d1b0
add esp, 0x24
cmp dword [esp + 0x70], edi
jb 0x40b8c1
mov eax, dword [esp + 0x5c]
push eax
call fcn.00429048
add esp, 4
xor ecx, ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
cmp dword [esp + 0x54], edi
jb 0x40b8e3
mov edx, dword [esp + 0x40]
push edx
call fcn.00429048
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
cmp esi, ebx
je 0x40b942
mov eax, dword [esp + 0x2c]
mov edi, eax
cmp esi, eax
je 0x40b939
nop
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b92e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40b910
mov esi, dword [esp + 0x28]
push esi
call fcn.00429048
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00429048
add esp, 4
mov al, 1
jmp 0x40b82e