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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x10199c20]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
push ebp
mov dword [esp + 0x18], eax
or eax, 0xffffffff
push esi
mov esi, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea ecx, [eax + 6]
push edi
lea edx, [esp + 0x30]
mov eax, esi
mov dword [esp + 0x14], esi
call fcn.004b8b67
mov dword [esp + 0x18], eax
xor ebp, ebp
jmp 0x4b8f37
lea ecx, [ebp + 0x10]
mov ebx, 1
shl ebx, cl
mov ecx, ebp
mov edi, 1
shl edi, cl
mov ecx, edi
or ecx, ebx
test eax, ecx
je 0x4b910e
mov ecx, dword [esp + ebp*4 + 0x30]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x4b8f94
mov eax, dword [esp + 0x20]
push 4
lea edx, [esp + 0x30]
add eax, 0x60
push edx
push eax
call fcn.004b8727
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x4b8f96
xor esi, esi
test eax, edi
je 0x4b8fa6
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
test eax, ebx
je 0x4b8fb1
or edx, 2
mov dword [esp + 0x10], edx
mov dword [esp + ebp*4 + 0x44], edx
test esi, esi
je 0x4b907f
mov ebx, dword [esp + 0x14]
xor ebp, ebp
cmp dword [ebx + 0x78], ebp
jle 0x4b8fdc
lea eax, [ebx + 0x50]
cmp ecx, dword [eax]
je 0x4b9057
inc ebp
add eax, 4
cmp ebp, dword [ebx + 0x78]
jl 0x4b8fcb
mov eax, 1
add dword [esi + 0x18], eax
test al, dl
je 0x4b8feb
add dword [esi + 0x1c], eax
test dl, 2
je 0x4b8ff3
add dword [esi + 0x20], eax
mov eax, dword [esi + 4]
lea edx, [ebx + 0x24]
push edx
push ebx
push eax
push esi
call fcn.004b8307
add esp, 0x10
mov edi, dword [esi + 0x20]
neg edi
sbb edi, edi
xor ecx, ecx
and edi, 2
cmp dword [esi + 0x1c], ecx
setne cl
or edi, ecx
cmp dword [esi + 0x10], edi
je 0x4b9040
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x4b903d
mov edx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x38]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push edi
push edx
push ebx
call eax
add esp, 0x14
mov dword [esi + 0x10], edi
mov esi, dword [esp + 0x14]
inc ebp
cmp ebp, 5
jge 0x4b910e
mov eax, dword [esp + 0x18]
jmp 0x4b8f37
mov eax, dword [ebx + ebp*4 + 0x64]
cmp eax, edx
je 0x4b9005
test al, 1
je 0x4b9066
dec dword [esi + 0x1c]
test al, 2
je 0x4b906d
dec dword [esi + 0x20]
test dl, 1
je 0x4b9075
inc dword [esi + 0x1c]
test dl, 2
je 0x4b9005
inc dword [esi + 0x20]
jmp 0x4b9005
mov edi, dword [esp + 0x20]
add edi, 0x60
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
cmp ecx, 0xffffffff
je 0x4b90ab
push 4
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004b8727
add esp, 0xc
test eax, eax
je 0x4b90ab
mov esi, eax
jmp 0x4b90db
push 0x24
push 1
call dword [0x10192050]
mov esi, eax
add esp, 8
test esi, esi
je 0x4b90f6
push 0
push esi
call fcn.004b82e7
push esi
push 4
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.004b85f7
add esp, 0x18
test eax, eax
je 0x4b90ec
test esi, esi
je 0x4b90f6
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x4b8fdc
push esi
call dword [0x10192044]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005b6fd5
add esp, 0x4c
ret
cmp dword [esi + 0x78], 0
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
jle 0x4b91f0
lea eax, [esi + 0x64]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0x14]
xor eax, eax
test ebx, ebx
jle 0x4b9149
cmp edi, dword [esp + eax*4 + 0x30]
je 0x4b91d9
inc eax
cmp eax, ebx
jl 0x4b913a
or ebp, 0xffffffff
mov dword [esp + 0x1c], edi
cmp edi, ebp
je 0x4b91d9
mov ebx, dword [esp + 0x20]
push 4
lea edx, [esp + 0x20]
lea eax, [ebx + 0x60]
push edx
push eax
mov dword [esp + 0x30], eax
call fcn.004b8727
add esp, 0xc
test eax, eax
je 0x4b91d5
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
add dword [eax + 0x18], ebp
mov edx, dword [eax + 0x18]
test cl, 2
je 0x4b918b
add dword [eax + 0x20], ebp
test cl, 1
je 0x4b9193
add dword [eax + 0x1c], ebp
test edx, edx
jne 0x4b91c6
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x4b91af
mov edx, dword [eax + 0x14]
mov eax, dword [ebx + 0x38]
push edx
push eax
push 4
push edi
push esi
call ecx
add esp, 0x14
mov edx, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], edi
call fcn.004b86a7
jmp 0x4b91d2
push 0
lea ecx, [esi + 0x24]
push ecx
push eax
call fcn.004b8377
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 4
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x78]
jl 0x4b912d
lea edi, [ebx*4]
push edi
lea edx, [esp + 0x34]
push edx
lea eax, [esi + 0x50]
push eax
call fcn.005b7857
push edi
lea ecx, [esp + 0x54]
push ecx
lea edx, [esi + 0x64]
push edx
call fcn.005b7857
mov ecx, dword [esp + 0x70]
add esp, 0x18
pop edi
mov dword [esi + 0x78], ebx
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005b6fd5
add esp, 0x4c
ret