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

Disassembly:
sub esp, 0xec
mov eax, dword [0x1013567c]
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.10079d10
mov dword [esi + 0x34], ebp
test ebx, ebx
je 0x1004ec5d
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.1018df41
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
test byte [eax], 8
jne 0x1004ec63
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.1006dcd0
cmp dword [esp + 0x68], 0
mov edi, eax
je 0x1004ec51
cmp edi, 0xfffffffe
jne 0x1004ec45
lea ecx, [esp + 0x14]
call fcn.1006e570
test eax, eax
je 0x1004ec45
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.1006e570
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.1005f110
mov eax, dword [esp + 0x10]
test byte [eax], 8
je 0x1004ebe1
mov edx, dword [esp + 0x20]
jmp 0x1004ec63
mov edx, dword [esp + 0x20]
mov dword [ebx], 0
jmp 0x1004ec5f
mov edx, dword [esp + 0x20]
mov dword [ebx], 1
jmp 0x1004ec5f
xor edx, edx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
and eax, 8
jne 0x1004ecc0
test ebx, ebx
je 0x1004ec90
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004ec7b
mov ecx, dword [ecx + 0xc]
jmp 0x1004ec7d
xor ecx, ecx
cmp ecx, dword [esi + 0x14]
je 0x1004ecc0
cmp dword [ebx], 1
je 0x1004ec90
cmp edi, 0xfffffffe
je 0x1004ec90
test ebp, ebp
je 0x1004ecc0
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.1004f850
mov edx, eax
mov eax, dword [ebp]
and eax, 8
jne 0x1004f117
jmp 0x1004ecc8
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x1004f104
test byte [esp + 0x28], 8
jne 0x1004f10b
mov eax, edx
mov edi, 0x104
dec edx
mov dword [esp + 0x20], edx
test eax, eax
je 0x1004f104
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.1006e160
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp word [ecx], di
jne 0x1004ed2a
lea ecx, [esp + 0x14]
call fcn.1006e570
test eax, eax
jne 0x1004ed2a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004ed25
mov eax, dword [eax + 0xc]
jmp 0x1004ed27
xor eax, eax
mov dword [esi + 0x34], eax
test byte [esp + 0x28], 8
je 0x1004f117
lea ecx, [esp + 0x28]
call fcn.10062990
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], 0
test eax, eax
je 0x1004ed52
mov eax, dword [eax + 0xc]
jmp 0x1004ed54
xor eax, eax
cmp eax, dword [esi + 0x14]
jne 0x1004ee49
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 0x1004f10b
push 1
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
push edi
call fcn.1007d400
test byte [esp + 0x28], 8
jne 0x1004f10b
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.1005d650
test byte [esp + 0x28], 8
jne 0x1004f10b
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078cf0
push 0x1000
push dword [esp + 0x1c]
push dword [esp + 0x48]
call fcn.101175c0
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
call fcn.10061290
push eax
push 0x103
lea ecx, [esp + 0x28]
call fcn.1006e0e0
test byte [esp + 0x28], 8
jne 0x1004f10b
lea ecx, [esp + 0x3c]
call fcn.1006e0d0
inc al
lea ecx, [esp + 0x14]
movzx eax, al
push eax
call fcn.1006e720
push edi
lea ecx, [esp + 0x18]
call fcn.1006e730
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.10079c60
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 0x1004f10b
push 1
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
push ebx
call fcn.1007d400
test byte [esp + 0x28], 8
jne 0x1004f10b
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.1005d650
test byte [esp + 0x28], 8
jne 0x1004f10b
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078cf0
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.1006e760
test byte [ebp], 8
jne 0x1004f104
lea ecx, [esp + 0x3c]
call fcn.1006e570
test eax, eax
je 0x1004ef80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.1006e570
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.1005f110
test byte [esp + 0x28], 8
jne 0x1004f0f2
push dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
call fcn.10078cf0
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 0x1004f0f2
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004ef62
mov eax, dword [eax + 0xc]
jmp 0x1004ef64
xor eax, eax
push eax
lea ecx, [esp + 0x58]
call fcn.1006e750
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004ef80
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x40]
mov ecx, 0x104
cmp word [eax], cx
jne 0x1004efad
lea ecx, [esp + 0x3c]
call fcn.1006e570
test eax, eax
jne 0x1004efad
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004efa8
mov eax, dword [eax + 0xc]
jmp 0x1004efaa
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.1005f110
test byte [ebp], 8
je 0x1004efd7
xor edi, edi
jmp 0x1004f02a
lea eax, [esp + 0x60]
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.1006dcd0
mov edi, eax
cmp edi, 0xfffffffe
jne 0x1004f005
lea ecx, [esp + 0x48]
call fcn.1006e500
test eax, eax
jne 0x1004f005
lea ecx, [esp + 0x48]
call fcn.1006e4b0
mov edi, eax
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
call fcn.10078cf0
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 0x1004f104
push ebx
push edi
lea ecx, [esp + 0x50]
call fcn.1006e6e0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
call fcn.1006e4b0
push eax
lea ecx, [esp + 0x20]
call fcn.1006dff0
test byte [esp + 0x28], 8
jne 0x1004f10b
mov eax, dword [esp + 0x18]
mov ecx, 0x103
cmp word [eax], cx
jne 0x1004f0a7
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.1006e4b0
push eax
lea ecx, [esp + 0x1c]
call fcn.1006e5d0
test byte [esp + 0x28], 8
jne 0x1004f10b
lea ecx, [esp + 0x6c]
call fcn.100730b0
push eax
lea ecx, [esp + 0x18]
call fcn.1006e730
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004f0b4
mov eax, dword [eax + 0xc]
jmp 0x1004f0b6
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.10071e40
test byte [esp + 0x28], 8
jne 0x1004f10b
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.10079c60
test byte [esp + 0x28], 8
lea ebx, [esp + 0x6c]
mov dword [esp + 0x24], ebx
jne 0x1004f10b
mov edx, dword [esp + 0x20]
jmp 0x1004ecdb
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004f104
add eax, 0x4c
or edx, 0xffffffff
lock xadd dword [eax], edx
test byte [esp + 0x28], 8
je 0x1004f117
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.10062800
test dword [esp + 0x28], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
je 0x1004f12e
lea ecx, [esp + 0x18]
call fcn.100628d0
lea ecx, [esp + 0x5c]
call fcn.10071e20
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
test eax, eax
je 0x1004f14b
add eax, 0x4c
mov ecx, edx
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1004f15c
add eax, 0x4c
mov ecx, edx
lock xadd dword [eax], ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x1004f16c
add eax, 0x4c
lock xadd dword [eax], edx
dec edx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.1011720d
add esp, 0xec
ret 0xc