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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0158
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 0
test eax, eax
je 0x4beb74
cmp eax, 0xffffffff
je 0x4beb0e
cmp eax, 1
jne 0x4beb04
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4beb0e
mov eax, 0x80070057
jmp 0x4bf26d
cmp byte [ebx + 0x40], 0
je 0x4beb28
push dword [ebx + 0x4c]
mov eax, dword [esi]
push dword [ebx + 0x48]
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x4bf26d
mov dword [ebp - 0x28], 0
mov edi, dword [ebp + 0x14]
xor ecx, ecx
test edi, edi
mov byte [ebp - 4], 1
mov eax, dword [esi]
setne cl
push ecx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call dword [eax + 0x14]
mov esi, eax
test esi, esi
je 0x4beb6b
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4beb64
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
jmp 0x4bf26d
test edi, edi
jne 0x4beb7b
cmp dword [ebp - 0x28], edi
jne 0x4beb7b
xor eax, eax
jmp 0x4bf26d
mov ecx, dword [ebp - 0x48]
push dword [ebp - 0x40]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x4beb93
mov byte [ebp - 4], 4
jmp 0x4beb57
mov ecx, ebx
call fcn.004be0b0
push 0x20
call fcn.00587dd8
mov esi, eax
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.COutStreamWithCRC.0
push esi
mov dword [esi + 8], 0
call dword [0x5cb774]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x4bebd5
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4bebe2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], edi
lea ecx, [ebp - 0x24]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], 0xffffffff
call fcn.00438ed0
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4bec21
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x10], 0
mov ecx, dword [ebp - 0x48]
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4bec37
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x48]
mov dword [edi + 0xc], edx
mov byte [ebp - 4], 7
mov eax, dword [edx]
mov ecx, dword [eax]
lea eax, [edi + 0x10]
push eax
push 0x5c1f34
push edx
call ecx
mov byte [edi + 0xa], 1
mov al, byte [ebx + 0x3d]
mov byte [ebp - 0x31], al
test al, al
je 0x4bed2c
mov ecx, dword [ebx + 0x68]
test ecx, ecx
jne 0x4bec9c
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 9
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4bec92
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x4bf26d
call fcn.00558d60
mov edi, eax
test edi, edi
je 0x4becd6
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov byte [ebp - 4], 0xc
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4beccf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x4bf26d
mov edi, dword [ebx + 0x6c]
push 0x100000
lea ecx, [edi + 0x50]
call fcn.00554cf0
test al, al
je 0x4bed30
mov eax, dword [edi + 0x58]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov eax, edi
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov byte [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [eax + 0x48], 0x20
mov dword [eax + 0x4c], 0
mov dword [eax + 0x78], 0
mov byte [eax + 0x1066], 0
jmp 0x4bed30
mov byte [ebx + 0x3d], 1
mov ecx, dword [ebx + 0x6c]
xor edi, edi
mov eax, 0x20
mov byte [ebp - 0x1d], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x64], xmm0
sub eax, dword [ecx + 0x48]
mov edx, dword [ecx + 0x50]
sub edx, dword [ecx + 0x58]
shr eax, 3
sub edx, eax
movlpd qword [ebp - 0x5c], xmm0
sbb edi, edi
add edx, dword [ecx + 0x70]
adc edi, 0
add edx, dword [ecx + 0x60]
mov dword [ebp - 0x38], edx
adc edi, dword [ecx + 0x64]
xor al, al
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x50], eax
nop
mov eax, dword [ebp - 0x24]
push 0
push 0
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edi
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x2c], ecx
push dword [ebp - 0x24]
call fcn.00558180
mov edi, eax
test edi, edi
je 0x4bedd7
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov byte [ebp - 4], 0x10
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x11
jmp 0x4becc2
lea ecx, [ebp - 0x94]
call fcn.004bd860
cmp byte [ebp - 0x1d], 0
mov byte [ebp - 4], 0x12
je 0x4bedf6
cmp byte [ebp - 0x31], 0
je 0x4beee8
push dword [ebx + 0x6c]
lea ecx, [ebp - 0x94]
call fcn.004bdca0
mov edi, eax
test edi, edi
je 0x4bee58
cmp edi, 1
je 0x4bee58
push dword [ebp - 0x78]
call fcn.00588148
push dword [ebp - 0x84]
call fcn.00588148
add esp, 8
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 0x14
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4beccf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, edi
jmp 0x4bf26d
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx + 0x70]
lea edx, [eax*8]
cmp eax, 4
ja 0x4beea8
mov eax, 0x20
sub eax, dword [ecx + 0x48]
cmp eax, edx
jb 0x4beea8
test edi, edi
jne 0x4beead
cmp dword [ecx + 0x70], 4
ja 0x4beebc
mov eax, 0x20
sub eax, dword [ecx + 0x48]
mov dword [ebp - 0x30], eax
cmp eax, edx
jb 0x4beebc
mov eax, dword [ecx + 0x50]
xor edx, edx
sub eax, dword [ecx + 0x58]
shr dword [ebp - 0x30], 3
sub eax, dword [ebp - 0x30]
sbb edx, edx
add eax, dword [ecx + 0x70]
adc edx, 0
jmp 0x4beec4
mov edi, 1
cmp byte [ebp - 0x1d], 0
je 0x4bee7a
mov byte [ebx + 0x3c], 0
jmp 0x4bf135
mov eax, dword [ecx + 0x50]
sub eax, dword [ecx + 0x58]
xor edx, edx
add eax, dword [ecx + 0x60]
adc edx, dword [ecx + 0x64]
cmp dword [ebp - 0x38], eax
jne 0x4beedb
cmp dword [ebp - 0x3c], edx
jne 0x4beedb
xor edi, edi
jmp 0x4bf135
test edi, edi
je 0x4beee8
mov byte [ebx + 0x3e], 1
jmp 0x4bf135
mov eax, dword [esi + 0x10]
add dword [ebp - 0x50], 1
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x14]
adc dword [ebp - 0x54], 0
mov dword [esi + 0x18], 0xffffffff
mov ebx, dword [ebx + 0x6c]
mov ecx, ebx
mov edi, dword [ebp - 0x24]
push 0
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x58], eax
call fcn.00562da0
push edi
push esi
mov ecx, ebx
call fcn.005627d0
mov ebx, dword [ebp - 0x98]
mov edi, eax
mov edx, 0x20
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x9c], ecx
mov eax, dword [ecx + 0x50]
sub eax, dword [ecx + 0x58]
sub edx, dword [ecx + 0x48]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx + 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x64]
mov ecx, dword [ecx + 0x70]
mov dword [ebp - 0x40], eax
mov eax, edx
shr eax, 3
mov dword [ebp - 0x58], edx
xor edx, edx
sub ecx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x14]
sbb edx, edx
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
adc edx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x68]
mov dword [ebp - 0x38], ecx
adc edx, 0
mov dword [ebp - 0x3c], edx
test edi, edi
je 0x4befbb
cmp edi, 1
je 0x4befbb
push dword [ebp - 0x78]
call fcn.00588148
push dword [ebp - 0x84]
call fcn.00588148
add esp, 8
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 0x17
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x18
jmp 0x4becc2
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x70]
lea ecx, [eax*8]
cmp eax, 4
ja 0x4bf11a
cmp dword [ebp - 0x58], ecx
jb 0x4bf11a
test edi, edi
jne 0x4bf135
mov eax, dword [edx + 0x48]
mov ecx, eax
neg ecx
and ecx, 7
shr dword [edx + 0x78], cl
add eax, ecx
mov dword [edx + 0x48], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x6c]
mov ecx, eax
push 8
mov dword [ebp - 0x58], eax
call fcn.004bd910
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bf04b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax + 0x70]
cmp edx, 4
ja 0x4bf046
mov ecx, 0x20
sub ecx, dword [eax + 0x48]
lea eax, [edx*8]
cmp ecx, eax
jb 0x4bf046
xor al, al
jmp 0x4bf048
mov al, 1
movzx edi, al
mov eax, dword [ebx + 0x6c]
mov ecx, 0x20
xor edx, edx
sub ecx, dword [eax + 0x48]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x50]
sub ecx, dword [eax + 0x58]
mov eax, dword [ebp - 0x30]
shr eax, 3
sub ecx, eax
mov eax, dword [ebx + 0x6c]
sbb edx, edx
add ecx, dword [eax + 0x70]
adc edx, 0
add ecx, dword [eax + 0x60]
mov dword [ebp - 0x38], ecx
adc edx, dword [eax + 0x64]
mov dword [ebp - 0x3c], edx
test edi, edi
je 0x4bf0d1
cmp edi, 1
je 0x4bf0bf
push dword [ebp - 0x78]
call fcn.00588148
push dword [ebp - 0x84]
call fcn.00588148
add esp, 8
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 0x1a
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x1b
jmp 0x4becc2
mov eax, dword [eax + 0x70]
cmp eax, 4
ja 0x4bf12c
shl eax, 3
cmp dword [ebp - 0x30], eax
jae 0x4bf135
jmp 0x4bf12c
mov eax, dword [esi + 0x18]
not eax
cmp dword [ebp - 0x8c], eax
jne 0x4bf114
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x60]
cmp dword [ebp - 0x88], eax
jne 0x4bf114
mov byte [ebp - 4], 0xe
push dword [ebp - 0x78]
call fcn.00588148
push dword [ebp - 0x84]
call fcn.00588148
mov edx, dword [ebp - 0x38]
add esp, 8
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
jmp 0x4bed90
mov byte [ebp - 0x29], 1
jmp 0x4bf130
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
adc eax, 0
mov dword [ebp - 0x3c], eax
mov byte [ebx + 0x3f], 1
mov edi, 1
push dword [ebp - 0x78]
call fcn.00588148
push dword [ebp - 0x84]
call fcn.00588148
add esp, 8
mov dword [ebp - 4], 6
cmp byte [ebp - 0x1d], 0
jne 0x4bf186
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x5c], eax
mov word [ebx + 0x40], 0x101
mov byte [ebx + 0x42], 1
cmp byte [ebx + 0x3c], 0
jne 0x4bf193
mov edi, 7
jmp 0x4bf1ca
cmp byte [ebx + 0x3f], 0
je 0x4bf1a0
mov edi, 5
jmp 0x4bf1ca
cmp byte [ebp - 0x29], 0
je 0x4bf1ad
mov edi, 3
jmp 0x4bf1ca
cmp byte [ebx + 0x3e], 0
je 0x4bf1ba
mov edi, 6
jmp 0x4bf1ca
cmp edi, 1
jne 0x4bf1c6
mov edi, 2
jmp 0x4bf1ca
test edi, edi
jne 0x4bf1fe
mov byte [ebp - 4], 0x23
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 0x24
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4bf1f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x48]
push edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x4bf26d
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 0x21
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x22
jmp 0x4becc2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 0x14