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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50be10
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 1
jne 0x4be79b
cmp dword [ebp + 0x18], 4
jne 0x4be79b
call fcn.004bdbc0
test al, al
jne 0x4bde8e
mov eax, 0x8007000e
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor ebx, ebx
mov byte [esp + 0x16], bl
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
cmp edi, ebx
je 0x4bdec6
mov eax, dword [edi]
cmp eax, ebx
je 0x4bdec6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
cmp eax, ebx
ja 0x4bdec6
jb 0x4bdec1
cmp ecx, 0x1000000
ja 0x4bdec6
mov byte [esp + 0x16], 1
mov dword [esp + 0x38], esi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x88], ebx
mov edi, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
cmp edi, ebx
je 0x4bdeeb
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4bdefa
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x24], edi
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x34], 0
mov edi, dword [edx + 4]
cmp edi, ebx
je 0x4bdf25
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4bdf34
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x4c], edi
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x5c], 0
mov edi, dword [edx + 8]
cmp edi, ebx
je 0x4bdf5f
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x4bdf6e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x74], edi
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x84], 0
mov edi, dword [edx + 0xc]
cmp edi, ebx
je 0x4bdf9c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x4bdfae
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0xb4], edi
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xc4], 0
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x88], 1
mov byte [esi + 0x8c], 0
add esi, 0xc8
mov ecx, 0x102
mov eax, 0x400
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x8c], 1
mov edx, dword [eax]
mov edx, dword [edx]
push 0x521af8
push eax
call edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
xor edi, edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov eax, 0x20000
xor esi, esi
sub eax, edi
je 0x4be0ad
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
lea ebx, [esp + 0x30]
push ebx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, esi
add eax, edi
push eax
push ecx
mov ecx, dword [edx + 0xc]
call ecx
mov ebx, eax
test ebx, ebx
jne 0x4be47e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4be0ad
add esi, eax
mov eax, 0x20000
sub eax, esi
sub eax, edi
jne 0x4be071
add esi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], 0
cmp esi, 5
jb 0x4be50e
mov ebx, dword [ebp + 8]
add esi, 0xfffffffb
mov dword [esp + 0x34], esi
mov edx, dword [ebx + 8]
mov edi, dword [esp + 0x18]
mov al, byte [edi + edx]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
mov byte [ecx + edx], al
inc dword [esi + 4]
mov byte [esp + 0x15], al
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x4be10d
cmp dword [esi + 0xc], eax
je 0x4be10d
call fcn.004b0060
test eax, eax
jne 0x4be6a4
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x4be0f8
mov al, byte [esp + 0x15]
mov cl, al
and cl, 0xfe
cmp cl, 0xe8
je 0x4be136
cmp byte [esp + 0x14], 0xf
jne 0x4be12c
mov dl, al
and dl, 0xf0
cmp dl, 0x80
je 0x4be136
inc edi
mov dword [esp + 0x18], edi
jmp 0x4be40d
mov eax, dword [ebx + 8]
mov cl, byte [eax + edi + 4]
movzx esi, byte [eax + edi + 3]
add eax, edi
movzx edx, cl
shl edx, 8
or esi, edx
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 1]
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x20]
lea edx, [esi + edi]
lea edx, [edx + eax + 5]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x17], cl
mov dword [esp + 0x28], edx
test eax, eax
je 0x4be2ce
xor ecx, ecx
add edi, dword [esp + 0x44]
adc ecx, dword [esp + 0x48]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ecx
cmp dword [esp + 0x40], ecx
ja 0x4be249
jb 0x4be1a7
mov ecx, edi
cmp dword [esp + 0x3c], ecx
jae 0x4be249
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push ecx
push eax
call edx
mov edi, eax
test edi, edi
jne 0x4be1f3
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
adc ecx, eax
add dword [esp + 0x4c], 1
mov eax, dword [esp + 0x1c]
adc dword [esp + 0x50], edi
jmp 0x4be22b
cmp edi, 1
je 0x4be204
cmp edi, 0x80004001
jne 0x4be6b7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4be21a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
or ecx, 0xffffffff
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x68]
jb 0x4be1a7
ja 0x4be249
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x64]
jb 0x4be1a7
test eax, eax
jne 0x4be274
cmp byte [esp + 0x16], al
je 0x4be295
cmp eax, dword [esp + 0x60]
ja 0x4be26d
jb 0x4be2f6
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x28], eax
jb 0x4be2f6
xor al, al
jmp 0x4be2f8
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
sub eax, edi
sbb edx, ecx
mov dword [esp + 0x78], edx
jne 0x4be295
cmp eax, 0x1000000
jbe 0x4be2a1
mov al, byte [esp + 0x17]
test al, al
je 0x4be2f6
cmp al, 0xff
jmp 0x4be2f0
mov eax, esi
cdq
add eax, dword [esp + 0x64]
adc edx, dword [esp + 0x68]
add eax, 5
adc edx, 0
cmp edx, ecx
jb 0x4be2ca
ja 0x4be2bc
cmp eax, edi
jb 0x4be2ca
cmp edx, dword [esp + 0x40]
ja 0x4be2ca
jb 0x4be2f6
cmp eax, dword [esp + 0x3c]
jb 0x4be2f6
xor al, al
jmp 0x4be2f8
cmp byte [esp + 0x16], 0
je 0x4be2e9
xor eax, eax
cmp eax, dword [esp + 0x60]
ja 0x4be2e5
jb 0x4be2f6
cmp edx, dword [esp + 0x5c]
jb 0x4be2f6
xor al, al
jmp 0x4be2f8
test cl, cl
je 0x4be2f6
cmp cl, 0xff
je 0x4be2f6
xor al, al
jmp 0x4be2f8
mov al, 1
cmp byte [esp + 0x15], 0xe8
jne 0x4be306
movzx ecx, byte [esp + 0x14]
jmp 0x4be316
xor ecx, ecx
cmp byte [esp + 0x15], 0xe9
setne cl
add ecx, 0x100
mov edx, dword [ebx + 0x98]
lea edi, [ebx + 0x88]
test al, al
je 0x4be3c8
mov eax, edx
shr eax, 0xb
imul eax, dword [ebx + ecx*4 + 0xc8]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
sub edx, eax
mov dword [edi + 0x10], edx
mov eax, dword [ebx + ecx*4 + 0xc8]
mov edx, eax
shr edx, 5
sub eax, edx
mov dword [ebx + ecx*4 + 0xc8], eax
mov eax, dword [edi + 0x10]
cmp eax, 0x1000000
jae 0x4be36d
shl eax, 8
mov dword [edi + 0x10], eax
call fcn.004bd840
add dword [esp + 0x18], 5
cmp byte [esp + 0x15], 0xe8
lea esi, [ebx + 0x38]
je 0x4be37f
lea esi, [ebx + 0x60]
mov edi, 0x18
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
mov ecx, edi
shr eax, cl
mov ecx, dword [esi + 4]
mov byte [ecx + edx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x4be3b9
cmp dword [esi + 0xc], eax
je 0x4be3b9
call fcn.004b0060
test eax, eax
jne 0x4be6fb
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x4be3a4
sub edi, 8
jns 0x4be384
mov cl, byte [esp + 0x17]
mov byte [esp + 0x14], cl
jmp 0x4be411
shr edx, 0xb
imul edx, dword [ebx + ecx*4 + 0xc8]
mov dword [edi + 0x10], edx
mov eax, dword [ebx + ecx*4 + 0xc8]
mov edx, 0x800
sub edx, eax
shr edx, 5
add edx, eax
mov dword [ebx + ecx*4 + 0xc8], edx
mov eax, dword [edi + 0x10]
cmp eax, 0x1000000
jae 0x4be405
shl eax, 8
mov dword [edi + 0x10], eax
call fcn.004bd840
inc dword [esp + 0x18]
mov al, byte [esp + 0x15]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x34]
jbe 0x4be0ce
add dword [esp + 0x20], eax
add dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
adc dword [esp + 0x48], 0
test eax, eax
je 0x4be44c
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
jne 0x4be70e
mov ecx, dword [esp + 0x2c]
xor edi, edi
cmp dword [esp + 0x18], ecx
jae 0x4be477
mov esi, dword [esp + 0x18]
lea esp, [esp]
mov eax, dword [ebx + 8]
mov dl, byte [eax + esi]
mov esi, dword [esp + 0x18]
inc esi
mov byte [eax + edi], dl
inc edi
mov dword [esp + 0x18], esi
cmp esi, ecx
jb 0x4be460
xor ebx, ebx
jmp 0x4be066
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x4be498
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp + 8]
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x4be4b8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x4be4ca
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x4be4dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0xb4]
cmp eax, edi
je 0x4be4f4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xb4], edi
mov eax, ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test esi, esi
jbe 0x4be5f9
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + eax]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
lea esi, [ebx + 0x10]
mov byte [eax + ecx], dl
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [esp + 0x17], dl
cmp eax, dword [esi + 8]
jne 0x4be569
cmp dword [esi + 0xc], eax
je 0x4be569
lea ebx, [ebx]
call fcn.004b0060
test eax, eax
jne 0x4be691
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 4]
jne 0x4be550
mov dl, byte [esp + 0x17]
cmp dl, 0xe8
jne 0x4be575
movzx eax, byte [esp + 0x14]
jmp 0x4be595
cmp dl, 0xe9
jne 0x4be581
mov eax, 0x100
jmp 0x4be595
cmp byte [esp + 0x14], 0xf
jne 0x4be5e2
mov al, dl
and al, 0xf0
cmp al, 0x80
jne 0x4be5e2
mov eax, 0x101
mov ecx, dword [ebx + 0x98]
lea edi, [ebx + 0x88]
shr ecx, 0xb
imul ecx, dword [ebx + eax*4 + 0xc8]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebx + eax*4 + 0xc8]
mov esi, 0x800
sub esi, ecx
shr esi, 5
add esi, ecx
mov dword [ebx + eax*4 + 0xc8], esi
mov eax, dword [edi + 0x10]
cmp eax, 0x1000000
jae 0x4be5e2
shl eax, 8
mov dword [edi + 0x10], eax
call fcn.004bd840
mov dl, byte [esp + 0x17]
mov eax, dword [esp + 0x18]
inc eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x2c]
jb 0x4be520
mov esi, dword [ebp + 8]
mov ebx, esi
call fcn.004bdd90
xor ebx, ebx
mov edi, eax
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4be61e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4be63b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4be64d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x4be65f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x4be677
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xb4], ebx
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x52d698
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], eax
call fcn.004f048b
mov dword [esp + 0x34], eax
push 0x52d698
lea eax, [esp + 0x38]
push eax
call fcn.004f048b
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4be6cf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, ebx
mov dword [esp + 0x88], 0xffffffff
call fcn.004bd940
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [esp + 0x34], eax
push 0x52d698
lea eax, [esp + 0x38]
push eax
call fcn.004f048b
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x4be728
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [ebx + 0x24]
cmp eax, esi
je 0x4be745
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x24], esi
mov eax, dword [ebx + 0x4c]
cmp eax, esi
je 0x4be757
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x4c], esi
mov eax, dword [ebx + 0x74]
cmp eax, esi
je 0x4be769
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x74], esi
mov eax, dword [ebx + 0xb4]
cmp eax, esi
je 0x4be781
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0xb4], esi
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x80070057
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18