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

Disassembly:
push 0xffffffffffffffff
push 0x4d16fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0xc4]
mov eax, dword [ebp + 4]
push 0xc
push eax
call dword [0x4d53f4]
mov ecx, dword [ebp + 0x114]
xor ebx, ebx
cmp ecx, ebx
je 0x40d03f
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 0x114]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x58]
push eax
call edx
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x40ced2
mov dword [ebp + 0x82c], 0xffffffff
jmp 0x40cedf
mov ecx, dword [esp + 0xc8]
mov dword [ebp + 0x82c], ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 0x114]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x38]
call eax
cmp dword [esp + 0xcc], 3
jne 0x40cf08
push 1
push ebx
push ebx
push 0x30
push 0x4e2968
jmp 0x40cf32
call fcn.00427dd0
test eax, eax
jne 0x40cf27
call fcn.00427e70
test eax, eax
jne 0x40cf27
push 1
push ebx
push ebx
push 0x30
push str.wiSO_
jmp 0x40cf32
push 1
push ebx
push ebx
push 0x30
push str.wiSO
mov ecx, dword [ebp + 0x114]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [ebp + 0x114]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
push 1
push 0x333333
push 0x333333
call eax
mov ecx, dword [ebp + 0x100]
mov edx, dword [ebp + 0x818]
mov eax, dword [ecx + 4]
mov ecx, dword [esi]
push edx
push ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00430520
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x114]
mov edi, dword [ecx]
add esp, 8
cdq
push 1
sub eax, edx
push 0xffffffffffffffff
push 0xffffffffffffffff
sar eax, 1
mov edx, 0x151
sub edx, eax
mov eax, dword [edi + 0x1c]
push 0x25
push edx
call eax
cmp dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0x114]
je 0x40d038
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x90]
push eax
call edx
mov edx, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
mov dword [esp + 0x18], edx
jg 0x40cfe9
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
mov edi, dword [eax + 8]
cmp ecx, edi
mov edx, ecx
jg 0x40cff8
mov edx, edi
mov edi, dword [eax + 4]
mov ecx, dword [esp + 0x5c]
cmp ecx, edi
jge 0x40d005
mov edi, ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jge 0x40d011
mov eax, ecx
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], eax
call dword [0x4d53e8]
jmp 0x40d03f
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
call edx
push fcn.004029a0
push 0x402980
push 2
push 4
lea eax, [esp + 0x60]
push eax
call fcn.004ab004
mov dword [esp + 0xbc], ebx
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0xa
mov byte [esp + 0xbc], 2
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
xor edi, edi
cmp eax, 1
jne 0x40d0b6
cmp eax, ebx
jge 0x40d0b3
push 0x80070057
call fcn.00402940
movzx edi, word [ecx]
push 0x50f800
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.00469180
test eax, eax
jne 0x40d0dc
push 0x50f818
lea edx, [esp + 0x6c]
push edx
mov ecx, edi
call fcn.00469180
mov esi, dword [esp + 0x68]
cmp esi, ebx
mov dword [esp + 0x28], ebx
je 0x40d211
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x28], 2
jae 0x40d211
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x40d4f2
mov edi, dword [esp + 0x20]
mov eax, esi
mov ecx, dword [eax + 8]
mov esi, dword [esi]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40d16b
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40d15e
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40d15e
call fcn.00402a60
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40d151
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x20], ecx
jmp 0x40d16b
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.00406770
test esi, esi
je 0x40d180
push 1
push 0x4e363c
lea edx, [esp + 0x28]
push edx
call fcn.004092d0
mov ebx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004064f0
mov edx, dword [ebp + 0x100]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 0x814]
mov eax, dword [eax]
push edx
push eax
mov eax, ecx
lea edi, [esp + 0x3c]
call fcn.00430520
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x2c], 0x6e
jle 0x40d1ef
add dword [esp + 0x28], 1
add dword [esp + 0x1c], 4
cmp dword [esp + 0x28], 2
jae 0x40d209
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004092d0
test esi, esi
jne 0x40d0f4
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0x50]
xor esi, esi
cmp eax, 1
mov dword [esp + 0x1c], esi
jne 0x40d235
cmp dword [edx - 0xc], esi
jne 0x40d23a
mov eax, dword [esp + 0x54]
cmp dword [eax - 0xc], esi
jmp 0x40d238
cmp eax, 3
je 0x40d286
mov eax, dword [edx - 0xc]
cmp eax, esi
mov dword [esp + 0x1c], 1
je 0x40d286
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x40d0a9
cmp ecx, eax
jg 0x40d0a9
movzx ecx, word [edx + ecx*2]
cmp cx, 0xff0c
jne 0x40d286
add eax, 0xffffffff
cmp eax, esi
jl 0x40d0a9
cmp eax, dword [edx - 8]
jg 0x40d0a9
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x50]
mov word [ecx + eax*2], si
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
lea esi, [ebp + 0x118]
mov ecx, dword [esi]
test ecx, ecx
je 0x40d40f
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
mov ebx, eax
lea eax, [esp + 0x58]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [esp + eax*4 + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [eax]
push 1
push eax
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
push 1
xor edi, edi
push edi
push 1
push 0xf
push 0x4e2968
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
push 1
push 0x191919
push 0x191919
call eax
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
je 0x40d311
mov edx, dword [ebp + 0x814]
jmp 0x40d317
mov edx, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x100]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
push edx
push ecx
lea edi, [esp + 0x34]
call fcn.00430520
add esp, 8
cmp dword [esp + 0x28], 0
jle 0x40d346
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
jmp 0x40d348
xor eax, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
mov edi, dword [ecx]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 3
sub edx, eax
mov eax, dword [esp + 0x24]
push 1
lea edx, [edx + eax + 0x28]
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
cdq
sub eax, edx
sar eax, 1
mov edx, 0x113
sub edx, eax
mov eax, dword [edi + 0x1c]
push edx
call eax
mov ecx, dword [esp + 0x30]
add dword [esp + 0x24], ecx
mov ecx, dword [esi]
xor eax, eax
cmp ebx, eax
je 0x40d408
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x90]
push eax
call edx
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x64]
cmp edx, ecx
jg 0x40d3bd
mov edx, ecx
mov ebx, dword [esp + 0x60]
mov edi, dword [eax + 8]
cmp ebx, edi
mov ecx, ebx
jg 0x40d3cc
mov ecx, edi
mov edi, dword [eax + 4]
mov ebx, dword [esp + 0x5c]
cmp ebx, edi
jge 0x40d3d9
mov edi, ebx
mov eax, dword [eax]
mov ebx, dword [esp + 0x58]
cmp ebx, eax
jge 0x40d3e5
mov eax, ebx
mov dword [esp + 0x3c], eax
push 1
lea eax, [esp + 0x40]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edx
call dword [0x4d53e8]
jmp 0x40d40f
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
mov eax, dword [esp + 0x18]
add eax, 1
add esi, 4
cmp eax, 2
mov dword [esp + 0x18], eax
jb 0x40d294
mov ecx, dword [ebp + 0x124]
test ecx, ecx
je 0x40d626
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 0x124]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
mov edi, eax
lea eax, [esp + 0x80]
push eax
call edx
mov eax, dword [ebp + 0x124]
lea esi, [esp + 0x4c]
call fcn.00433b00
mov byte [esp + 0xbc], 3
cmp dword [ebp + 0x834], 0
mov eax, 0x4e36ac
je 0x40d47c
mov eax, 0x4e36c0
mov ecx, dword [ebp + 0x124]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [ebp + 0x124]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
push 1
push 0
push 0
push 0xb
push 0x4e2968
call eax
mov ecx, dword [ebp + 0x124]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
push 1
push 0xb3b3b3
push 0xb3b3b3
call eax
mov ecx, dword [ebp + 0x124]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa
push 0xa
call eax
mov eax, dword [ebp + 0x124]
lea esi, [esp + 0x18]
call fcn.00433b00
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d4fc
push 0x80004005
call fcn.00402940
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40d528
test dx, dx
je 0x40d524
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40d528
add ecx, 4
add eax, 4
test dx, dx
jne 0x40d502
xor eax, eax
jmp 0x40d52d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
movzx ecx, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [ebp + 0x8c8], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d55b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x40d5f2
mov ecx, dword [ebp + 0x124]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xa0]
push eax
call edx
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x8c]
cmp edx, ecx
jg 0x40d59e
mov edx, ecx
mov edi, dword [esp + 0x88]
mov esi, dword [eax + 8]
cmp edi, esi
mov ecx, edi
jg 0x40d5b0
mov ecx, esi
mov esi, dword [eax + 4]
mov edi, dword [esp + 0x84]
cmp edi, esi
jge 0x40d5c0
mov esi, edi
mov eax, dword [eax]
mov edi, dword [esp + 0x80]
cmp edi, eax
jge 0x40d5cf
mov eax, edi
mov dword [esp + 0x3c], eax
push 1
lea eax, [esp + 0x40]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], edx
call dword [0x4d53e8]
jmp 0x40d602
mov ebp, dword [ebp + 0x124]
mov edx, dword [ebp]
mov eax, dword [edx + 0x34]
mov ecx, ebp
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0xbc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d626
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
call fcn.00411130
mov byte [esp + 0xbc], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d657
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.004029a0
push 2
push 4
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0xcc], 0xffffffff
call fcn.004a934c
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 0xc