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

Disassembly:
push 0xffffffffffffffff
push 0x483b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x30], eax
xor esi, esi
mov dword [esp + 0x120], esi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x140], esi
jne 0x40ebcd
cmp dword [esp + 0x144], 8
jb 0x40ebc6
mov ecx, dword [esp + 0x130]
push ecx
call fcn.00443d41
add esp, 4
xor eax, eax
jmp 0x40f1bf
call fcn.004440b8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40ebe7
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x120], 1
call fcn.00450200
mov byte [esp + 0x120], 2
cmp dword [esp + 0x144], 8
mov eax, dword [esp + 0x130]
push 0x3b
lea ebx, [esp + 0x50]
jae 0x40ec2e
lea eax, [esp + 0x134]
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00401ed0
call fcn.0043f1c0
mov eax, dword [esp + 0x5c]
xor esi, esi
add esp, 8
mov dword [esp + 0x24], esi
test eax, eax
jle 0x40f168
test esi, esi
jl 0x40f1e9
cmp esi, eax
jge 0x40f1e9
mov ecx, dword [esp + 0x50]
lea eax, [ecx + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407570
lea ebx, [esp + 0x18]
call fcn.0040f4b0
mov ebx, eax
call fcn.0040f530
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0
je 0x40f157
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ebdd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x120], 3
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ebdd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 4
call fcn.00450200
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x40eea0
push 0x3d
push eax
call fcn.004624d3
add esp, 8
test eax, eax
je 0x40eea0
sub eax, dword [esp + 0x18]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40eea0
nop
push edi
push 0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404b10
mov byte [esp + 0x120], 6
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40eda0
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40ed92
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ed92
push eax
call fcn.00401fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40ed89
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x40eda0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401da0
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40edc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00450519
inc edi
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
call fcn.0040f240
mov byte [esp + 0x120], 7
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40ee4a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40ee3c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ee3c
push eax
call fcn.00401fe0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40ee33
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x40ee4a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401da0
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x40ee9c
push 0x3d
push eax
call fcn.004624d3
add esp, 8
test eax, eax
je 0x40ee9c
sub eax, dword [esp + 0x18]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ed30
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00407570
lea ebx, [esp + 0x20]
call fcn.0040f4b0
mov ebx, eax
call fcn.0040f530
push 0x490348
lea eax, [esp + 0x24]
call fcn.0040f5d0
mov ebx, eax
mov eax, 0x490348
call fcn.0040f630
mov edi, 7
xor ebp, ebp
xor edx, edx
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebp
mov word [esp + 0xe0], dx
xor eax, eax
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebp
mov word [esp + 0xfc], ax
mov byte [esp + 0x120], 9
mov eax, dword [esp + 0x40]
cmp eax, ebp
jle 0x40f0aa
test ebp, ebp
jl 0x40f1e9
cmp ebp, eax
jge 0x40f1e9
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + ebp*4]
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ef40
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xe0]
call fcn.00403310
mov eax, dword [esp + 0x20]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ef65
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xfc]
call fcn.00403310
mov edx, esi
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.0040f420
lea edx, [esp + 0x60]
push edx
mov edi, eax
mov byte [esp + 0x124], 0xa
call fcn.00410220
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xd0]
push eax
push ecx
lea ebx, [esp + 0x68]
mov byte [esp + 0x128], 0xb
call fcn.0040f2d0
mov ebx, 8
cmp dword [esp + 0x94], ebx
jb 0x40efe9
mov edx, dword [esp + 0x80]
push edx
call fcn.00443d41
add esp, 4
xor esi, esi
xor eax, eax
mov edi, 7
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], esi
mov word [esp + 0x80], ax
cmp dword [esp + 0x78], ebx
jb 0x40f01b
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00443d41
add esp, 4
xor edx, edx
mov byte [esp + 0x120], 9
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], esi
mov word [esp + 0x64], dx
cmp dword [esp + 0xcc], ebx
jb 0x40f04b
mov eax, dword [esp + 0xb8]
push eax
call fcn.00443d41
add esp, 4
xor ecx, ecx
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], esi
mov word [esp + 0xb8], cx
cmp dword [esp + 0xb0], ebx
jb 0x40f07c
mov edx, dword [esp + 0x9c]
push edx
call fcn.00443d41
add esp, 4
mov eax, dword [esp + 0x40]
inc dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x40ef23
cmp dword [esp + 0x110], ebx
jb 0x40f0a6
mov eax, dword [esp + 0xfc]
push eax
call fcn.00443d41
add esp, 4
mov esi, dword [esp + 0x24]
xor ebx, ebx
xor ecx, ecx
cmp dword [esp + 0xf4], 8
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], cx
jb 0x40f0de
mov edx, dword [esp + 0xe0]
push edx
call fcn.00443d41
add esp, 4
xor eax, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], ax
mov byte [esp + 0x120], 4
call fcn.004503b7
mov byte [esp + 0x120], 3
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 0x40f12f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x120], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x40ec55
lea ecx, [esp + 0x4c]
mov byte [esp + 0x120], 1
call fcn.004503b7
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x144], 8
jb 0x40f1bb
mov ecx, dword [esp + 0x130]
push ecx
call fcn.00443d41
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00461706
add esp, 0x110
ret 0x20
call fcn.00443ffb
int3