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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x6fe1c0]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [eax + 0x60]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004dc10a
mov esi, dword [ebp + 0x10]
mov edx, eax
mov ecx, esi
mov dword [esp + 0x20], edx
and ecx, 0xff000000
mov eax, 0x14000000
cmp ecx, eax
jne 0x4bbcee
cmp esi, eax
je 0x4bbcee
cmp byte [0x72251c], 0
je 0x4bb8ec
push 0x2f
pop ecx
call fcn.005046af
mov edx, dword [esp + 0x20]
push edi
xor ecx, ecx
mov eax, dword [edx]
push ecx
push ecx
push ecx
push ecx
lea edi, [esp + 0x40]
mov dword [esp + 0x34], ecx
push edi
lea edi, [esp + 0x40]
push edi
lea edi, [esp + 0x4c]
push edi
lea edi, [esp + 0x54]
push edi
lea edi, [esp + 0x48]
push edi
push 0x200
lea edi, [esp + 0x64]
push edi
push ecx
push esi
push edx
call dword [eax + 0x88]
push eax
mov ecx, ebx
call fcn.004bead6
cmp byte [0x72251c], 0
mov edi, dword [esp + 0x10]
je 0x4bb942
push 0x2f
pop ecx
call fcn.0050472f
push edi
push 0x200
push dword [esp + 0x2c]
mov ecx, ebx
call fcn.004b52f6
test al, al
je 0x4bbcee
lea eax, [esp + 0x38]
push 0x2e
push eax
call fcn.00435c37
pop ecx
pop ecx
test eax, eax
jne 0x4bbcee
mov eax, dword [esp + 0x24]
cmp eax, 1
jbe 0x4bbcee
mov ecx, dword [ebx + 0x20]
add ecx, 4
dec eax
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004a846e
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x28], 0x6000000
mov edi, ecx
mov dword [esp + 0x1c], eax
mov eax, ecx
mov dword [esp + 0x18], eax
je 0x4bb9be
push dword [esp + 0x28]
mov ecx, ebx
push esi
call fcn.004bbd05
mov edi, eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], 0x6000000
je 0x4bb9d8
push dword [esp + 0x2c]
mov ecx, ebx
push esi
call fcn.004bbd05
mov dword [esp + 0x18], eax
test edi, edi
jne 0x4bb9e4
test eax, eax
je 0x4bbcee
mov eax, dword [ebx + 0x20]
xor edx, edx
push edx
push dword [esp + 0x10]
mov ecx, dword [eax + 8]
push esi
push dword [esp + 0x28]
add ecx, 0x110
call fcn.004fd38a
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x3c], eax
push dword [ecx + 0x50]
mov ecx, ebx
push dword [esp + 0x38]
push dword [esp + 0x1c]
call fcn.004b8319
mov dword [esi + 0x20], eax
test eax, eax
je 0x4bba34
cmp dword [eax + 4], 0
je 0x4bba49
cmp dword [eax + 4], 7
je 0x4bba49
or dword [esi], 0x300
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x9c]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0xc]
call fcn.004dc2bf
mov ecx, dword [esi + 0x20]
xor edx, edx
push edx
mov edx, dword [eax + 0x28]
mov edx, dword [edx + 0xc]
call fcn.004beb65
test edi, edi
je 0x4bbabb
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x4bbabb
call fcn.004fc51e
test al, al
je 0x4bbabb
mov ecx, dword [edi + 0x3c]
call fcn.004fc541
cmp eax, 0xef
jne 0x4bbabb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bbabb
mov eax, dword [eax + 0x40]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4bbabb
call fcn.004fc51e
test al, al
je 0x4bbabb
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax + 0x18]
call fcn.004fc541
cmp eax, 0xef
jne 0x4bbabb
or byte [esi + 0x1c], 0x10
mov ecx, dword [ebx + 0x20]
and dword [esp + 0x10], 0
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c0]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4bbb0f
mov eax, dword [esi + 0x20]
lea ecx, [edx + 0x280]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
call fcn.004fd42f
mov ecx, dword [ebx + 0x20]
push eax
push 0
push dword [esp + 0x14]
mov ecx, dword [ecx + 8]
add ecx, 0x2c
call fcn.004f92dc
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
push 1
push 0
push 0x80
push dword [esp + 0x20]
push dword [esp + 0x2c]
call dword [edx + 0x70]
jmp 0x4bbb62
mov ecx, eax
call fcn.004db738
cmp eax, dword [esi + 0x20]
je 0x4bbb73
cmp dword [esp + 0x10], 0
je 0x4bbb49
mov ecx, dword [esp + 0xc]
call fcn.004db738
cmp eax, dword [esp + 0x10]
je 0x4bbb73
mov ecx, dword [ebx + 0x20]
push 1
push 0
push 0x80
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.004d907c
mov ecx, eax
call fcn.004db6c8
mov dword [esp + 0xc], eax
test eax, eax
je 0x4bbb7e
jmp 0x4bbb27
mov eax, dword [esp + 0xc]
or byte [eax + 0x28], 8
mov dword [esi + 0x2c], eax
test edi, edi
je 0x4bbbb3
mov dword [esi + 0x24], edi
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x14], 1
jne 0x4bbbad
mov eax, dword [eax + 0x18]
cmp eax, dword [esi + 0x20]
jne 0x4bbbad
test byte [esi + 0x1c], 0x10
jne 0x4bbbb3
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 0x3c]
cmp eax, dword [ecx + 0x84]
je 0x4bbbb3
or dword [esi], 0x300
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4bbbec
mov dword [esi + 0x28], edx
mov eax, dword [edx + 0x40]
cmp dword [eax + 0x14], 1
jne 0x4bbbe6
test byte [esi + 0x1c], 0x10
jne 0x4bbbd5
mov eax, dword [eax + 0x18]
cmp eax, dword [esi + 0x20]
jne 0x4bbbe6
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp eax, dword [ecx + 0x84]
je 0x4bbbec
or dword [esi], 0x300
test edi, edi
je 0x4bbc47
mov ecx, dword [edi]
test edx, edx
je 0x4bbc49
xor ecx, dword [esi]
and ecx, 0x1e000
xor ecx, dword [esi]
mov dword [esi], ecx
mov eax, dword [edi + 0x24]
shr eax, 0x11
xor al, byte [esi + 0x1c]
and al, 1
xor byte [esi + 0x1c], al
mov eax, dword [edi]
xor eax, dword [edx]
test eax, 0x1e000
jne 0x4bbc59
mov eax, dword [edx + 0x24]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x1c], eax
mov eax, edx
mov edi, dword [esp + 0x1c]
xor eax, edi
test eax, 0x20000
jne 0x4bbc59
shr edx, 0x17
shr edi, 0x17
not edx
not edi
xor edx, edi
test dl, 1
jne 0x4bbc59
jmp 0x4bbc61
mov ecx, dword [edx]
shr ecx, 0xd
shl ecx, 0xd
xor ecx, dword [esi]
and ecx, 0x1e000
xor ecx, dword [esi]
or ecx, 0x300
mov dword [esi], ecx
shr ecx, 8
test cl, 1
jne 0x4bbca4
mov ecx, dword [esi + 0x24]
mov edx, 0xffffff13
mov eax, dword [ecx + 0x88]
and eax, edx
or eax, 0x10
mov dword [ecx + 0x88], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 0x78], esi
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x88]
and eax, edx
or eax, 0x10
mov dword [ecx + 0x88], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 0x78], esi
jmp 0x4bbcd7
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4bbcb4
mov eax, dword [eax]
shr eax, 8
test al, 1
je 0x4bbcc4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4bbcc9
mov eax, dword [eax]
shr eax, 8
test al, 1
jne 0x4bbcc9
mov byte [esp + 0x20], 2
mov al, byte [esi + 0x1c]
mov edx, dword [esp + 0x20]
and al, 0xfd
or al, dl
mov byte [esi + 0x1c], al
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x38]
push dword [esi + 0x20]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0x58]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040548e
mov esp, ebp
pop ebp
ret 0xc