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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51aa0b
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push ebx
mov ebx, ecx
push esi
xor esi, esi
cmp dword [ebx + 0x6c], esi
jle 0x4be08b
mov ecx, dword [ebx + 0x68]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov byte [edx + 0x140], 0
mov ecx, dword [ebx + 0x6c]
cmp eax, ecx
jl 0x4be075
push ebp
push edi
mov dword [esp + 0x1c], 0x5294c8
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov eax, dword [ebx + 0x80]
lea edi, [ebx + 0x78]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], esi
call fcn.004de680
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov ebp, eax
dec eax
test ebp, ebp
je 0x4be0dd
inc eax
mov ebp, dword [edx]
add edx, 4
mov dword [ecx], ebp
add ecx, 4
dec eax
jne 0x4be0d0
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004de680
mov eax, dword [esp + 0x24]
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
jle 0x4be174
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4be165
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4be15d
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x14]
add ecx, eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esi + 0x10]
push eax
push ecx
mov ecx, dword [esi + 0x24]
call fcn.004c9430
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x4be153
mov ecx, esi
call fcn.004da360
mov ebp, dword [edi + 8]
push 0xffffffffffffffff
mov ecx, edi
lea edx, [ebp + 1]
push edx
call fcn.004de680
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], esi
mov ebp, dword [esp + 0x10]
jmp 0x4be165
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
jmp 0x4be165
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ebp
jl 0x4be0f9
xor esi, esi
mov eax, dword [ebx + 0x6c]
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x10], ebp
jle 0x4be239
mov ecx, dword [ebx + 0x68]
mov edx, dword [ecx + ebp*4]
mov al, byte [edx + 0x140]
test al, al
jne 0x4be229
push 0x88
call fcn.0050b264
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
mov byte [esp + 0x38], 1
je 0x4be1bc
mov ecx, eax
call fcn.004da0c0
mov esi, eax
mov eax, dword [ebx + 0x68]
push 0xffffffffffffffff
mov byte [esp + 0x3c], 0
mov ecx, dword [eax + ebp*4]
mov eax, dword [esi + 0x18]
lea ebp, [esi + 0x10]
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebp
call fcn.004de680
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [edx + ecx*4], eax
mov ecx, esi
call fcn.004da360
mov eax, dword [esp + 0x10]
mov dword [esi + 0x24], 0
mov edx, dword [ebx + 0x68]
push 0xffffffffffffffff
mov ecx, dword [edx + eax*4]
mov byte [ecx + 0x140], 1
mov ebp, dword [edi + 8]
mov ecx, edi
lea edx, [ebp + 1]
push edx
call fcn.004de680
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], esi
mov ebp, dword [esp + 0x10]
xor esi, esi
mov eax, dword [ebx + 0x6c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ebp
jl 0x4be185
mov al, byte [ebx + 8]
pop edi
test al, al
pop ebp
jne 0x4be258
mov ecx, ebx
call fcn.004bf200
test al, al
je 0x4be258
mov ecx, ebx
call fcn.004bf200
test al, al
jne 0x4be24d
mov dword [esp + 0x14], 0x5294c8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], 2
cmp eax, esi
pop esi
pop ebx
je 0x4be27b
push eax
call fcn.0050b204
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret