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

Disassembly:
push 0xffffffffffffffff
push 0x452a50
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 + 0x124]
lea edx, [esp + 0x14]
push edx
call eax
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x84], ebx
xor ecx, ecx
push ebx
mov word [esp + 0x48], cx
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
call fcn.00401e90
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
cmp eax, 8
jb 0x40b43c
mov ebp, edx
cmp edx, ebx
je 0x40b237
mov ecx, edx
cmp eax, 8
jae 0x40b21d
lea ecx, [esp + 0x40]
cmp ecx, ebp
ja 0x40b237
mov ecx, edx
cmp eax, 8
jae 0x40b22c
lea ecx, [esp + 0x40]
mov esi, dword [esp + 0x50]
lea ecx, [ecx + esi*2]
cmp ebp, ecx
jbe 0x40b244
call fcn.00436eb7
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
lea edi, [esp + 0x3c]
cmp eax, 8
jb 0x40b445
mov esi, edx
cmp edx, ebx
je 0x40b27c
mov ecx, edx
cmp eax, 8
jae 0x40b262
lea ecx, [esp + 0x40]
cmp ecx, esi
ja 0x40b27c
cmp eax, 8
mov eax, edx
jae 0x40b271
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x50]
lea eax, [eax + edx*2]
cmp esi, eax
jbe 0x40b281
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]
mov dword [esp + 0x2c], edx
push ebp
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x30]
push edi
push ecx
push edx
lea ecx, [esp + 0x3c]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00411880
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, edx
sub eax, ecx
xor ebx, ebx
sar eax, 2
add esp, 0x14
xor esi, esi
cmp eax, ebx
jbe 0x40b383
cmp esi, eax
jb 0x40b2e1
call fcn.00436eb7
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + esi*4]
xor edx, edx
mov eax, ecx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], dx
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40b300
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00401f90
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x5c]
mov eax, ebp
cmp edi, 8
jae 0x40b32d
lea eax, [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
call fcn.0040e680
cmp eax, 0xffffffff
jne 0x40b44e
cmp edi, 8
jb 0x40b352
push ebp
call fcn.00429048
add esp, 4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor eax, eax
mov word [esp + 0x5c], ax
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
xor ebx, ebx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
cmp esi, eax
jb 0x40b2e1
cmp dword [esp + 0x54], 8
jb 0x40b39f
mov edx, dword [esp + 0x40]
push edx
call fcn.00429048
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
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 0x40b402
mov edi, edx
mov esi, ecx
cmp ecx, edx
je 0x40b3f9
lea esp, [esp]
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 0x40b3ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40b3d0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00429048
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 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 ebp, [esp + 0x40]
jmp 0x40b212
lea esi, [esp + 0x40]
jmp 0x40b257
cmp edi, 8
jb 0x40b45c
push ebp
call fcn.00429048
add esp, 4
xor ebx, ebx
xor ecx, ecx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
jb 0x40b486
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 + 0x20]
xor eax, eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
cmp esi, ebx
je 0x40b4e4
mov eax, dword [esp + 0x24]
mov edi, eax
cmp esi, eax
je 0x40b4db
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 0x40b4d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40b4b2
mov esi, dword [esp + 0x20]
push esi
call fcn.00429048
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00429048
add esp, 4
mov al, 1
jmp 0x40b41d