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

Disassembly:
sub esp, 0xec
mov eax, dword [0x101366b4]
xor eax, esp
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xf0]
push ebx
mov ebx, dword [esp + 0xf8]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x104]
xor ebp, ebp
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
push edi
lea ecx, [esi + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov edi, 0xfffffffe
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x40
mov dword [esp + 0x28], 1
call fcn.1007a4c0
mov dword [esi + 0x34], ebp
test ebx, ebx
je 0x1004efed
mov ecx, dword [esp + 0x24]
push dword [esp + 0x10]
push 2
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx]
mov ecx, esi
sub eax, 4
mov dword [ebx], ebp
mov dword [esp + 0x68], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.1004fbe0
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
test byte [eax], 8
jne 0x1004eff3
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.1006e3e0
cmp dword [esp + 0x68], 0
mov edi, eax
je 0x1004efe1
cmp edi, 0xfffffffe
jne 0x1004efd5
lea ecx, [esp + 0x14]
call fcn.1006ec80
test eax, eax
je 0x1004efd5
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.1006ec80
mov ecx, dword [esi]
push 0
push 0
push ecx
push dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1005f790
mov eax, dword [esp + 0x10]
test byte [eax], 8
je 0x1004ef71
mov edx, dword [esp + 0x20]
jmp 0x1004eff3
mov edx, dword [esp + 0x20]
mov dword [ebx], 0
jmp 0x1004efef
mov edx, dword [esp + 0x20]
mov dword [ebx], 1
jmp 0x1004efef
xor edx, edx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
and eax, 8
jne 0x1004f050
test ebx, ebx
je 0x1004f020
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004f00b
mov ecx, dword [ecx + 0xc]
jmp 0x1004f00d
xor ecx, ecx
cmp ecx, dword [esi + 0x14]
je 0x1004f050
cmp dword [ebx], 1
je 0x1004f020
cmp edi, 0xfffffffe
je 0x1004f020
test ebp, ebp
je 0x1004f050
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov ecx, esi
push ebp
push 2
push eax
lea eax, [esp + 0xc8]
push eax
push ebx
call fcn.1004fbe0
mov edx, eax
mov eax, dword [ebp]
and eax, 8
jne 0x1004f4a7
jmp 0x1004f058
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x1004f494
test byte [esp + 0x28], 8
jne 0x1004f49b
mov eax, edx
mov edi, 0x104
dec edx
mov dword [esp + 0x20], edx
test eax, eax
je 0x1004f494
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.1006e870
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp word [ecx], di
jne 0x1004f0ba
lea ecx, [esp + 0x14]
call fcn.1006ec80
test eax, eax
jne 0x1004f0ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004f0b5
mov eax, dword [eax + 0xc]
jmp 0x1004f0b7
xor eax, eax
mov dword [esi + 0x34], eax
test byte [esp + 0x28], 8
je 0x1004f4a7
lea ecx, [esp + 0x28]
call fcn.10063060
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], 0
test eax, eax
je 0x1004f0e2
mov eax, dword [eax + 0xc]
jmp 0x1004f0e4
xor eax, eax
cmp eax, dword [esi + 0x14]
jne 0x1004f1d9
mov eax, dword [esi]
lea edx, [esp + 0x28]
push edx
lea ebx, [esi + 0x8c]
push ebx
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x28], 8
mov edi, eax
jne 0x1004f49b
push 1
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
push edi
call fcn.1007dc10
test byte [esp + 0x28], 8
jne 0x1004f49b
mov ecx, dword [esi]
lea eax, [esp + 0x28]
push ecx
push eax
push edi
mov ecx, dword [ecx + 8]
lea eax, [esp + 0x48]
push eax
call fcn.1005dcd0
test byte [esp + 0x28], 8
jne 0x1004f49b
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.100794a0
push 0x1000
push dword [esp + 0x1c]
push dword [esp + 0x48]
call fcn.101180b0
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
call fcn.10061960
push eax
push 0x103
lea ecx, [esp + 0x28]
call fcn.1006e7f0
test byte [esp + 0x28], 8
jne 0x1004f49b
lea ecx, [esp + 0x3c]
call fcn.1006e7e0
inc al
lea ecx, [esp + 0x14]
movzx eax, al
push eax
call fcn.1006ee70
push edi
lea ecx, [esp + 0x18]
call fcn.1006ee80
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.1007a410
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + eax*4 + 0xbc], edi
mov eax, dword [esi]
lea edx, [esp + 0x28]
push edx
lea edi, [esi + 0x8c]
push edi
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x28], 8
mov ebx, eax
jne 0x1004f49b
push 1
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
push ebx
call fcn.1007dc10
test byte [esp + 0x28], 8
jne 0x1004f49b
mov ecx, dword [esi]
lea eax, [esp + 0x28]
push ecx
push eax
push ebx
mov ecx, dword [ecx + 8]
lea eax, [esp + 0x48]
push eax
call fcn.1005dcd0
test byte [esp + 0x28], 8
jne 0x1004f49b
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.100794a0
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x3c]
push ebp
push dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push edi
push eax
call fcn.1006eeb0
test byte [ebp], 8
jne 0x1004f494
lea ecx, [esp + 0x3c]
call fcn.1006ec80
test eax, eax
je 0x1004f310
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.1006ec80
mov ecx, dword [esi]
lea edx, [esp + 0x28]
push 0
push 0
push ecx
mov ecx, dword [ecx + 8]
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.1005f790
test byte [esp + 0x28], 8
jne 0x1004f482
push dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
call fcn.100794a0
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 0x18]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 0x1c]
and eax, 0xffffff6f
or eax, 0x60
mov dword [ecx + 0x1c], eax
test byte [esp + 0x28], 8
jne 0x1004f482
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004f2f2
mov eax, dword [eax + 0xc]
jmp 0x1004f2f4
xor eax, eax
push eax
lea ecx, [esp + 0x58]
call fcn.1006eea0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004f310
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x40]
mov ecx, 0x104
cmp word [eax], cx
jne 0x1004f33d
lea ecx, [esp + 0x3c]
call fcn.1006ec80
test eax, eax
jne 0x1004f33d
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004f338
mov eax, dword [eax + 0xc]
jmp 0x1004f33a
xor eax, eax
mov dword [esi + 0x34], eax
mov ecx, dword [esi]
mov eax, dword [esp + 0x20]
push 0
push 0
push ecx
mov ecx, dword [ecx + 8]
push ebp
push dword [esp + eax*4 + 0xc8]
lea eax, [esp + 0x5c]
push eax
call fcn.1005f790
test byte [ebp], 8
je 0x1004f367
xor edi, edi
jmp 0x1004f3ba
lea eax, [esp + 0x60]
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.1006e3e0
mov edi, eax
cmp edi, 0xfffffffe
jne 0x1004f395
lea ecx, [esp + 0x48]
call fcn.1006ec10
test eax, eax
jne 0x1004f395
lea ecx, [esp + 0x48]
call fcn.1006ebc0
mov edi, eax
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
call fcn.100794a0
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x18]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 0x1c]
and eax, 0xffffff6f
or eax, 0x60
mov dword [ecx + 0x1c], eax
test byte [ebp], 8
jne 0x1004f494
push ebx
push edi
lea ecx, [esp + 0x50]
call fcn.1006ee30
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
call fcn.1006ebc0
push eax
lea ecx, [esp + 0x20]
call fcn.1006e700
test byte [esp + 0x28], 8
jne 0x1004f49b
mov eax, dword [esp + 0x18]
mov ecx, 0x103
cmp word [eax], cx
jne 0x1004f437
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.1006ebc0
push eax
lea ecx, [esp + 0x1c]
call fcn.1006ece0
test byte [esp + 0x28], 8
jne 0x1004f49b
lea ecx, [esp + 0x6c]
call fcn.10073850
push eax
lea ecx, [esp + 0x18]
call fcn.1006ee80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004f444
mov eax, dword [eax + 0xc]
jmp 0x1004f446
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.100725e0
test byte [esp + 0x28], 8
jne 0x1004f49b
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.1007a410
test byte [esp + 0x28], 8
lea ebx, [esp + 0x6c]
mov dword [esp + 0x24], ebx
jne 0x1004f49b
mov edx, dword [esp + 0x20]
jmp 0x1004f06b
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004f494
add eax, 0x4c
or edx, 0xffffffff
lock xadd dword [eax], edx
test byte [esp + 0x28], 8
je 0x1004f4a7
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.10062ed0
test dword [esp + 0x28], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
je 0x1004f4be
lea ecx, [esp + 0x18]
call fcn.10062fa0
lea ecx, [esp + 0x5c]
call fcn.100725c0
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
test eax, eax
je 0x1004f4db
add eax, 0x4c
mov ecx, edx
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1004f4ec
add eax, 0x4c
mov ecx, edx
lock xadd dword [eax], ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x1004f4fc
add eax, 0x4c
lock xadd dword [eax], edx
dec edx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.10117cfd
add esp, 0xec
ret 0xc