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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x6fe1c0]
xor eax, esp
mov dword [esp + 0x450], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x60]
mov dword [esp + 0x30], ecx
mov ecx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.004dc10a
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov ecx, ebx
mov eax, 0x17000000
and ecx, 0xff000000
cmp ecx, eax
jne 0x4bb85f
cmp ebx, eax
je 0x4bb85f
cmp byte [0x72251c], 0
je 0x4bb031
push 0x23
pop ecx
call fcn.005046af
push dword [esp + 0x20]
xor edx, edx
mov eax, dword [esi]
push edx
push edx
push edx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x50]
push ecx
push edx
push edx
push edx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x64]
push ecx
push 0x200
lea ecx, [esp + 0x90]
push ecx
push edx
push ebx
push esi
call dword [eax + 0xe8]
push eax
mov ecx, edi
call fcn.004bead6
cmp byte [0x72251c], 0
je 0x4bb08f
push 0x23
pop ecx
call fcn.0050472f
push dword [esp + 0x20]
mov ecx, edi
push 0x200
push dword [esp + 0x3c]
call fcn.004b52f6
test al, al
je 0x4bb85f
mov eax, dword [edi]
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call dword [eax + 0x6c]
test al, al
je 0x4bb85f
mov eax, dword [esp + 0x34]
cmp eax, 1
jbe 0x4bb85f
mov ecx, dword [edi + 0x20]
add ecx, 4
dec eax
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004a846e
xor ebx, ebx
mov dword [esp + 0xc], eax
xor esi, esi
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x38], 0x6000000
mov dword [esp + 0x24], esi
je 0x4bb10d
push dword [esp + 0x38]
mov ecx, edi
push dword [esp + 0x18]
call fcn.004bbd05
mov ebx, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x3c], 0x6000000
je 0x4bb12c
push dword [esp + 0x3c]
mov ecx, edi
push dword [esp + 0x18]
call fcn.004bbd05
mov esi, eax
mov dword [esp + 0x24], eax
test ebx, ebx
jne 0x4bb138
test esi, esi
je 0x4bb85f
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add edx, ecx
mov dword [esp + 0x48], 0x489000
push edx
lea eax, [ecx + 1]
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], eax
mov ecx, edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004b8fc0
test eax, eax
je 0x4bb1cf
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0xc]
cmp ecx, eax
je 0x4bb190
test ebx, ebx
je 0x4bb187
cmp dword [ebx + 4], eax
je 0x4bb190
test esi, esi
je 0x4bb1cf
cmp dword [esi + 4], eax
jne 0x4bb1cf
test ecx, ecx
je 0x4bb1a5
mov ecx, dword [edi + 0x20]
add ecx, 4
push 0x1a
call fcn.004a84ac
mov edx, eax
jmp 0x4bb1a7
xor edx, edx
mov eax, dword [edi + 0x20]
push 0
push dword [esp + 0x34]
push dword [esp + 0x14]
mov ecx, dword [eax + 8]
push dword [esp + 0x20]
add ecx, 0x12c
push edx
call fcn.004fb8e6
mov ebx, eax
mov dword [esp + 0xc], ebx
jmp 0x4bb1f4
mov eax, dword [edi + 0x20]
push 0
push dword [esp + 0x34]
push dword [esp + 0x1c]
mov ecx, dword [eax + 8]
push dword [esp + 0x18]
add ecx, 0x110
call fcn.004fd346
mov ebx, eax
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x34], edx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push ebx
add eax, ecx
push eax
push ecx
push edx
mov ecx, edi
call fcn.004b9dba
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x24]
push 0x18
shr ecx, 0x15
mov edx, dword [eax + 0x14]
pop eax
mov dword [esp + 0x2c], eax
test edx, edx
jle 0x4bb331
and cl, 1
jne 0x4bb279
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x84]
shr eax, 0x1c
test al, 1
je 0x4bb336
test cl, cl
mov ecx, dword [ebx + 0x40]
jne 0x4bb263
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x84]
shr eax, 0x1c
test al, 1
je 0x4bb263
or byte [ebx + 0x78], 8
mov edx, dword [ecx + 0x14]
and dword [esp + 0x28], 0
test edx, edx
jle 0x4bb305
mov edx, dword [esp + 0x28]
push 0x18
pop eax
jmp 0x4bb282
mov ecx, dword [ebx + 0x40]
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], eax
mov ecx, dword [eax + ecx]
cmp dword [ecx + 4], 0xe
jne 0x4bb2e3
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x84]
shr eax, 0x1c
test al, 1
je 0x4bb2ff
call fcn.004fbeb0
cmp byte [eax + 0x24], 0
jne 0x4bb2ff
mov eax, dword [ebx + 0x24]
shr eax, 0x15
test al, 1
je 0x4bb2db
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x84]
shr eax, 0x1c
test al, 1
je 0x4bb2db
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx]
call fcn.004fbeb0
cmp byte [eax + 0x24], 0
je 0x4bb2f9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x40]
inc edx
add eax, 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], eax
cmp edx, dword [ecx + 0x14]
jge 0x4bb305
jmp 0x4bb286
or byte [ebx + 0x78], 8
jmp 0x4bb305
or dword [ebx], 0x300
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4bb315
test esi, esi
je 0x4bb5f5
mov ecx, esi
test esi, esi
jne 0x4bb31d
mov ecx, eax
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 8]
add eax, 0xc
push eax
push ecx
mov ecx, ebx
call fcn.004dc94a
jmp 0x4bb33c
test cl, 1
je 0x4bb33c
or dword [ebx], 0x300
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bb3ed
mov dword [ebx + 0x7c], eax
mov eax, dword [eax]
shr eax, 8
test al, 1
jne 0x4bb3d9
mov eax, dword [edi + 0x20]
push dword [ebx + 0x3c]
mov edi, dword [eax + 8]
lea ecx, [edi + 0x2c]
call fcn.004fa86d
mov esi, eax
lea ecx, [edi + 0x2c]
mov eax, dword [esp + 0x10]
push dword [eax + 0x3c]
call fcn.004fa86d
cmp esi, eax
jne 0x4bb3d9
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x40]
mov eax, dword [ecx + 0x14]
cmp eax, dword [edx + 0x14]
jne 0x4bb3d9
mov eax, dword [esp + 0x1c]
push edx
mov eax, dword [eax + 0x20]
mov edi, dword [eax + 8]
lea ecx, [edi + 0x2c]
call fcn.004fa890
push dword [esp + 0x18]
lea ecx, [edi + 0x2c]
mov esi, eax
call fcn.004fa890
cmp esi, eax
je 0x4bb3bf
or dword [ebx], 0x300
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
test dword [eax + 0x24], 0x400000
je 0x4bb3ed
or dword [ebx + 0x24], 0x400000
jmp 0x4bb3ed
mov eax, dword [esp + 0x10]
mov ecx, ebx
push dword [eax + 0x14]
push 1
call fcn.004db3f8
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4bb53f
mov dword [ebx + 0x80], esi
mov eax, dword [esi]
shr eax, 8
test al, 1
jne 0x4bb533
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x3c]
cmp eax, dword [ecx + 0x84]
jne 0x4bb533
mov eax, dword [ebx + 0x40]
mov edx, dword [esi + 0x40]
mov edi, dword [eax + 0x14]
lea eax, [edi + 1]
cmp dword [edx + 0x14], eax
jne 0x4bb533
mov eax, dword [esp + 0xc]
lea ebx, [ecx + 0x2c]
mov edi, dword [edx + edi*4 + 0x18]
mov ecx, ebx
push dword [eax + 0x3c]
call fcn.004fa86d
push edi
mov ecx, ebx
mov esi, eax
call fcn.004fa86d
cmp esi, eax
jne 0x4bb52b
push 0x18
xor eax, eax
pop esi
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x4bb476
mov ecx, dword [edx + 0x14]
jmp 0x4bb478
xor ecx, ecx
cmp eax, ecx
jge 0x4bb4c6
mov eax, dword [esp + 0x1c]
mov ebx, dword [esi + edx]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0x2c]
mov eax, dword [eax + 0x40]
push dword [esi + eax]
call fcn.004fa86d
push ebx
lea ecx, [edi + 0x2c]
mov esi, eax
call fcn.004fa86d
cmp eax, esi
jne 0x4bb4bc
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
inc eax
add esi, 4
mov dword [esp + 0x2c], esi
jmp 0x4bb462
mov ebx, dword [esp + 0xc]
or dword [ebx], 0x300
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x14]
cmp ecx, 1
jle 0x4bb53f
mov ecx, dword [eax + ecx*4 + 0x10]
cmp dword [ecx + 4], 0xb
jne 0x4bb53f
call fcn.004fbe8e
mov edi, dword [esp + 0x1c]
cmp dword [eax + 0x24], 1
jne 0x4bb543
mov eax, dword [esi + 0x40]
mov ecx, edi
mov eax, dword [eax + 0x14]
dec eax
push eax
push dword [esi + 0x34]
push dword [esp + 0x28]
call fcn.004ba691
mov ecx, dword [ebx + 0x24]
neg eax
sbb edx, edx
and ecx, 0xffbfffff
and edx, 0x400000
or edx, ecx
mov dword [ebx + 0x24], edx
mov eax, dword [esi + 0x24]
xor eax, edx
and eax, 0x400000
xor dword [esi + 0x24], eax
jmp 0x4bb543
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x24]
push dword [esi + 0x14]
mov ecx, ebx
push 1
call fcn.004db3f8
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4bb5f5
test esi, esi
je 0x4bb577
mov ecx, dword [edx]
mov eax, dword [esi]
shr ecx, 0xd
shr eax, 0xd
and ecx, 0xf
and eax, 0xf
cmp ecx, eax
ja 0x4bb569
mov ecx, eax
mov eax, dword [ebx]
shl ecx, 0xd
and eax, 0xfffe1fff
or ecx, eax
jmp 0x4bb583
mov ecx, dword [ebx]
xor ecx, dword [edx]
and ecx, 0x1e000
xor ecx, dword [ebx]
mov eax, dword [ebx + 0x24]
mov dword [ebx], ecx
xor eax, dword [edx + 0x24]
and eax, 0x20000
mov dword [esp + 0xc], ecx
xor dword [ebx + 0x24], eax
mov edx, dword [edx + 0x24]
xor edx, dword [ebx + 0x24]
and edx, 0x800000
xor edx, dword [ebx + 0x24]
mov dword [ebx + 0x24], edx
test esi, esi
je 0x4bb626
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x24]
xor eax, dword [esp + 0x20]
test eax, 0x20000
jne 0x4bb5e6
mov eax, dword [esi + 0x24]
xor eax, dword [esp + 0x20]
test eax, 0x800000
jne 0x4bb5e6
mov eax, dword [esi + 0x24]
xor eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
test eax, 0x400000
je 0x4bb626
mov eax, ecx
or eax, 0x300
mov dword [esp + 0xc], eax
mov dword [ebx], eax
jmp 0x4bb626
mov eax, dword [ebx]
xor eax, dword [esi]
and eax, 0x1e000
xor dword [ebx], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x24]
xor eax, dword [ebx + 0x24]
and eax, 0x20000
xor dword [ebx + 0x24], eax
mov edx, dword [esi + 0x24]
xor edx, dword [ebx + 0x24]
and edx, 0x800000
xor edx, dword [ebx + 0x24]
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0xc]
mov ecx, eax
test edx, 0x20000
je 0x4bb64f
mov eax, dword [ebx + 0x40]
cmp dword [eax + 0x14], 0
jle 0x4bb64f
shr edx, 0x15
mov eax, ecx
test dl, 1
jne 0x4bb64f
or ecx, 0x300
mov dword [ebx], ecx
cmp dword [esp + 0x10], 0
mov edx, ecx
je 0x4bb694
test esi, esi
je 0x4bb694
mov eax, ecx
and eax, 0x1e000
cmp eax, 0x6000
jne 0x4bb694
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
and eax, 0x1e000
cmp eax, 0x4000
je 0x4bb68a
mov eax, dword [esi]
and eax, 0x1e000
cmp eax, 0x4000
jne 0x4bb694
mov edx, ecx
or edx, 0x300
mov dword [ebx], edx
shr edx, 8
test dl, 1
je 0x4bb70c
mov ecx, ebx
call fcn.0050849c
test al, al
jne 0x4bb70c
mov eax, dword [esp + 0x14]
test byte [eax + 0x8c], 4
je 0x4bb6d1
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4bb6c1
mov dword [eax + 0x84], ebx
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4bb6d1
mov dword [eax + 0x84], ebx
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x4bb6e4
mov eax, dword [eax]
shr eax, 8
test al, 1
je 0x4bb6f4
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4bb6fb
mov eax, dword [eax]
shr eax, 8
test al, 1
jne 0x4bb6fb
mov ecx, 0x100000
jmp 0x4bb6fd
xor ecx, ecx
mov eax, dword [ebx + 0x24]
and eax, 0xffefffff
or eax, ecx
mov dword [ebx + 0x24], eax
jmp 0x4bb753
mov ecx, dword [ebx + 0x7c]
mov edx, 0xffffff0f
test ecx, ecx
je 0x4bb72f
mov eax, dword [ecx + 0x88]
and eax, edx
or eax, 0xc
mov dword [ecx + 0x88], eax
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0x78], ebx
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x4bb753
mov eax, dword [ecx + 0x88]
and eax, edx
or eax, 0xc
mov dword [ecx + 0x88], eax
mov eax, dword [ebx + 0x80]
mov dword [eax + 0x78], ebx
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0x34]
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x4bb7c3
cmp dword [edx + 0x14], 0
jle 0x4bb7c3
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [edx + 0x14]
add ecx, 0xc
shl eax, 2
push eax
call fcn.004b2b2b
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0x54], eax
test edx, edx
je 0x4bb78c
mov edx, dword [edx + 0x14]
jmp 0x4bb78e
xor edx, edx
mov eax, dword [edi + 0x20]
shl edx, 2
push edx
mov ecx, dword [eax + 8]
add ecx, 0xc
call fcn.004b2b2b
mov dword [ebx + 0x58], eax
xor esi, esi
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4bb7b1
mov eax, dword [eax + 0x14]
jmp 0x4bb7b3
xor eax, eax
cmp esi, eax
jge 0x4bb7cb
mov eax, dword [edi]
inc esi
push esi
push ebx
mov ecx, edi
call dword [eax + 0x30]
jmp 0x4bb7a5
and dword [ebx + 0x54], 0
and dword [ebx + 0x58], 0
cmp dword [ebx + 0x50], 0
je 0x4bb7f7
push dword [ebx + 0x50]
mov eax, dword [edi + 0x20]
push dword [ebx + 0x4c]
push dword [ebx + 0x3c]
mov ecx, dword [eax + 8]
add ecx, 0x2c
call fcn.004fa9aa
test eax, eax
je 0x4bb7f1
mov dword [ebx + 0x3c], eax
jmp 0x4bb7f7
or dword [ebx], 0x300
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x4bb828
cmp dword [edx + 0x14], 0
jle 0x4bb828
mov eax, dword [edi + 0x20]
push dword [ebx + 0x58]
push dword [ebx + 0x54]
mov ecx, dword [eax + 8]
add ecx, 0x2c
push edx
call fcn.004fa8b3
test eax, eax
je 0x4bb822
mov dword [ebx + 0x40], eax
jmp 0x4bb828
or dword [ebx], 0x300
mov ecx, dword [esp + 0x30]
call fcn.004dc2bf
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x10], 0
jne 0x4bb85f
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x84]
shr eax, 0x1c
test al, 1
je 0x4bb85f
mov eax, dword [edi + 0x20]
push dword [ebx + 0x3c]
mov ecx, dword [eax + 8]
add ecx, 0x2c
call fcn.004fa842
mov dword [ebx + 0x3c], eax
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040548e
mov esp, ebp
pop ebp
ret 0x10