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

Disassembly:
push 0xffffffffffffffff
push 0x5f609a
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebp
lea eax, [ebp + 0x669334]
push edi
push eax
mov ecx, esi
call dword [0x610574]
mov ecx, dword [0x610548]
cmp eax, dword [ecx]
je 0x4be4ce
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
lea edx, [esp + 0x30]
push edx
push 0x5c
push esi
mov dword [esp + 0x94], edi
call fcn.00520480
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x34]
cmp esi, edi
mov edi, dword [esp + 0x38]
je 0x4be487
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x4be487
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
lea ecx, [esp + 0x64]
call dword [0x610494]
mov byte [esp + 0x88], 1
mov eax, dword [ebp + 0x669348]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x18], eax
cmp ecx, eax
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
jb 0x4be2d8
lea eax, [esp + 0x2c]
mov ecx, 8
cmp dword [ebp + 0x66934c], ecx
jb 0x4be2ed
mov esi, dword [ebp + 0x669338]
jmp 0x4be2f3
lea esi, [ebp + 0x669338]
cmp dword [esp + 0x78], ecx
mov edi, dword [esp + 0x64]
jae 0x4be301
lea edi, [esp + 0x64]
mov ebx, dword [eax]
test ebx, ebx
je 0x4be374
movzx ecx, word [edi]
movzx ebp, word [esi]
push ecx
call dword [0x610650]
add esp, 4
push ebp
mov word [esp + 0x1c], ax
call dword [0x610650]
movzx ecx, word [esp + 0x1c]
add esp, 4
add esi, 2
cmp cx, ax
jne 0x4be345
mov dx, word [edi]
add edi, 2
test dx, dx
je 0x4be370
sub ebx, 1
jne 0x4be307
jmp 0x4be370
movzx eax, word [edi]
mov ebx, dword [0x610650]
push eax
sub esi, 2
call ebx
movzx ecx, word [esi]
add esp, 4
push ecx
movzx edi, ax
call ebx
movzx edx, ax
sub edi, edx
add esp, 4
test edi, edi
jne 0x4be45c
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
test edi, edi
mov esi, dword [esp + 0x38]
jne 0x4be384
xor eax, eax
jmp 0x4be39b
mov ecx, esi
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0x20]
add ecx, 1
cmp ecx, eax
jae 0x4be460
test edi, edi
je 0x4be3c7
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x4be3d1
call dword [0x6105e8]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
lea eax, [eax + edi + 0x1c]
push eax
lea ecx, [esp + 0x48]
call dword [0x610494]
mov eax, dword [ebp + 0x669364]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
cmp ecx, eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x2c]
jb 0x4be402
lea eax, [esp + 0x18]
mov edx, 8
cmp dword [ebp + 0x669368], edx
jb 0x4be417
mov ecx, dword [ebp + 0x669354]
jmp 0x4be41d
lea ecx, [ebp + 0x669354]
cmp dword [esp + 0x5c], edx
mov edx, dword [esp + 0x48]
jae 0x4be42b
lea edx, [esp + 0x48]
mov eax, dword [eax]
test eax, eax
je 0x4be50d
push eax
push ecx
push edx
call fcn.004ce260
add esp, 0xc
test eax, eax
je 0x4be50d
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call dword [0x6105a0]
jmp 0x4be460
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 0
call dword [0x6105a0]
add dword [esp + 0x20], 1
add dword [esp + 0x1c], 0x1c
mov ebx, dword [esp + 0x20]
xor edi, edi
jmp 0x4be272
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x88], 0xffffffff
je 0x4be4bc
cmp esi, edi
je 0x4be4b3
lea esp, [esp]
mov ecx, esi
call dword [0x6105a0]
add esi, 0x1c
cmp esi, edi
jne 0x4be4a0
mov esi, dword [esp + 0x34]
push esi
call fcn.005e6954
add esp, 4
mov esi, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
xor edi, edi
add dword [esp + 0x28], 1
add ebp, 0x3c
cmp ebp, 0x168
mov dword [esp + 0x24], ebp
jl 0x4be227
mov eax, 3
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005e693f
add esp, 0x78
ret
mov eax, dword [esp + 0x28]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov esi, dword [ecx*4 + 0x669330]
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call dword [0x6105a0]
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 0
call dword [0x6105a0]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x8c], 0xffffffff
call fcn.00404430
mov eax, esi
jmp 0x4be4eb