Function at 0x1004ea40
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.10079c40
mov dword [esi + 0x34], ebp
test ebx, ebx
je 0x1004ebad
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.1004f7a0
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
test byte [eax], 8
jne 0x1004ebb3
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.1006dc00
cmp dword [esp + 0x68], 0
mov edi, eax
je 0x1004eba1
cmp edi, 0xfffffffe
jne 0x1004eb95
lea ecx, [esp + 0x14]
call fcn.1006e4a0
test eax, eax
je 0x1004eb95
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.1006e4a0
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.1005f030
mov eax, dword [esp + 0x10]
test byte [eax], 8
je 0x1004eb31
mov edx, dword [esp + 0x20]
jmp 0x1004ebb3
mov edx, dword [esp + 0x20]
mov dword [ebx], 0
jmp 0x1004ebaf
mov edx, dword [esp + 0x20]
mov dword [ebx], 1
jmp 0x1004ebaf
xor edx, edx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
and eax, 8
jne 0x1004ec10
test ebx, ebx
je 0x1004ebe0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004ebcb
mov ecx, dword [ecx + 0xc]
jmp 0x1004ebcd
xor ecx, ecx
cmp ecx, dword [esi + 0x14]
je 0x1004ec10
cmp dword [ebx], 1
je 0x1004ebe0
cmp edi, 0xfffffffe
je 0x1004ebe0
test ebp, ebp
je 0x1004ec10
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.1004f7a0
mov edx, eax
mov eax, dword [ebp]
and eax, 8
jne 0x1004f067
jmp 0x1004ec18
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x1004f054
test byte [esp + 0x28], 8
jne 0x1004f05b
mov eax, edx
mov edi, 0x104
dec edx
mov dword [esp + 0x20], edx
test eax, eax
je 0x1004f054
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.1006e090
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp word [ecx], di
jne 0x1004ec7a
lea ecx, [esp + 0x14]
call fcn.1006e4a0
test eax, eax
jne 0x1004ec7a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004ec75
mov eax, dword [eax + 0xc]
jmp 0x1004ec77
xor eax, eax
mov dword [esi + 0x34], eax
test byte [esp + 0x28], 8
je 0x1004f067
lea ecx, [esp + 0x28]
call fcn.10062880
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], 0
test eax, eax
je 0x1004eca2
mov eax, dword [eax + 0xc]
jmp 0x1004eca4
xor eax, eax
cmp eax, dword [esi + 0x14]
jne 0x1004ed99
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 0x1004f05b
push 1
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
push edi
call fcn.1007d2e0
test byte [esp + 0x28], 8
jne 0x1004f05b
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.1005d580
test byte [esp + 0x28], 8
jne 0x1004f05b
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078c20
push 0x1000
push dword [esp + 0x1c]
push dword [esp + 0x48]
call fcn.10117410
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
call fcn.100611a0
push eax
push 0x103
lea ecx, [esp + 0x28]
call fcn.1006e010
test byte [esp + 0x28], 8
jne 0x1004f05b
lea ecx, [esp + 0x3c]
call fcn.1006e000
inc al
lea ecx, [esp + 0x14]
movzx eax, al
push eax
call fcn.1006e650
push edi
lea ecx, [esp + 0x18]
call fcn.1006e660
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.10079b90
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 0x1004f05b
push 1
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
push ebx
call fcn.1007d2e0
test byte [esp + 0x28], 8
jne 0x1004f05b
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.1005d580
test byte [esp + 0x28], 8
jne 0x1004f05b
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078c20
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.1006e690
test byte [ebp], 8
jne 0x1004f054
lea ecx, [esp + 0x3c]
call fcn.1006e4a0
test eax, eax
je 0x1004eed0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.1006e4a0
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.1005f030
test byte [esp + 0x28], 8
jne 0x1004f042
push dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
call fcn.10078c20
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 0x1004f042
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004eeb2
mov eax, dword [eax + 0xc]
jmp 0x1004eeb4
xor eax, eax
push eax
lea ecx, [esp + 0x58]
call fcn.1006e680
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004eed0
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x40]
mov ecx, 0x104
cmp word [eax], cx
jne 0x1004eefd
lea ecx, [esp + 0x3c]
call fcn.1006e4a0
test eax, eax
jne 0x1004eefd
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004eef8
mov eax, dword [eax + 0xc]
jmp 0x1004eefa
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.1005f030
test byte [ebp], 8
je 0x1004ef27
xor edi, edi
jmp 0x1004ef7a
lea eax, [esp + 0x60]
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.1006dc00
mov edi, eax
cmp edi, 0xfffffffe
jne 0x1004ef55
lea ecx, [esp + 0x48]
call fcn.1006e430
test eax, eax
jne 0x1004ef55
lea ecx, [esp + 0x48]
call fcn.1006e3e0
mov edi, eax
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
call fcn.10078c20
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 0x1004f054
push ebx
push edi
lea ecx, [esp + 0x50]
call fcn.1006e610
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
call fcn.1006e3e0
push eax
lea ecx, [esp + 0x20]
call fcn.1006df20
test byte [esp + 0x28], 8
jne 0x1004f05b
mov eax, dword [esp + 0x18]
mov ecx, 0x103
cmp word [eax], cx
jne 0x1004eff7
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.1006e3e0
push eax
lea ecx, [esp + 0x1c]
call fcn.1006e500
test byte [esp + 0x28], 8
jne 0x1004f05b
lea ecx, [esp + 0x6c]
call fcn.10072fe0
push eax
lea ecx, [esp + 0x18]
call fcn.1006e660
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004f004
mov eax, dword [eax + 0xc]
jmp 0x1004f006
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.10071d70
test byte [esp + 0x28], 8
jne 0x1004f05b
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.10079b90
test byte [esp + 0x28], 8
lea ebx, [esp + 0x6c]
mov dword [esp + 0x24], ebx
jne 0x1004f05b
mov edx, dword [esp + 0x20]
jmp 0x1004ec2b
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004f054
add eax, 0x4c
or edx, 0xffffffff
lock xadd dword [eax], edx
test byte [esp + 0x28], 8
je 0x1004f067
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.100626f0
test dword [esp + 0x28], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
je 0x1004f07e
lea ecx, [esp + 0x18]
call fcn.100627c0
lea ecx, [esp + 0x5c]
call fcn.10071d50
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
test eax, eax
je 0x1004f09b
add eax, 0x4c
mov ecx, edx
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1004f0ac
add eax, 0x4c
mov ecx, edx
lock xadd dword [eax], ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x1004f0bc
add eax, 0x4c
lock xadd dword [eax], edx
dec edx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.1011705d
add esp, 0xec
ret 0xc