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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4be5e6
sub esp, 0x68
mov eax, dword [esp + 0x70]
cmp eax, 0x63
jne 0x4be26a
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call fcn.004bdb20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.004bd040
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.004bd3f0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.004bd8f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x70]
cmp ebx, 0x55
je 0x4be457
cmp ebx, 0x76
je 0x4be435
xor ebx, ebx
mov dword [esp + 0x34], eax
mov ebp, dword [esp + 0x6c]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov byte [esp + 0xc], bl
call fcn.004bd9d0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x40
call fcn.00452d30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4be5a2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x74]
add edx, 0xffffffc0
neg edx
lea ebx, [edx - 0x20]
mov ebp, ecx
mov ecx, ebx
mov esi, eax
shl eax, cl
neg ecx
mov dword [esp + 0x40], ecx
shr esi, cl
mov ecx, edx
shl ebp, cl
mov edi, dword [esp + 0x40]
cmp edi, 0x20
sbb edi, edi
mov dword [esp + 0x3c], edi
and esi, edi
cmp ecx, 0x20
sbb edi, edi
and ebp, edi
or esi, ebp
cmp ebx, 0x20
sbb ebp, ebp
and eax, ebp
or esi, eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x28]
shl eax, cl
and eax, edi
shr esi, cl
and esi, edi
shr eax, cl
and eax, edi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov edi, edx
shl edx, cl
mov ecx, esi
mov esi, dword [esp + 0x3c]
and edx, esi
or eax, edx
mov edx, ecx
mov ecx, ebx
shr edi, cl
and edi, ebp
or eax, edi
mov ebx, dword [esp + 0x2c]
cmp edx, ebx
setne dl
mov ebp, dword [esp + 0x28]
cmp eax, ebp
setne al
or edx, eax
test dl, dl
jne 0x4be3bb
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
add esp, 0x68
ret
mov dword [esp], 0
lea eax, [0x7a1c11]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x23
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.0043bce0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
lea edx, [0x7436e0]
mov dword [esp], edx
call fcn.00409d00
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x4be427
mov eax, dword [esp + 0x48]
mov dword [edi], eax
jmp 0x4be50e
mov eax, dword [esp + 0x48]
call fcn.0044c9e0
jmp 0x4be50e
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.004bdce0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
movzx ebx, byte [esp + 0x10]
jmp 0x4be2ba
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
lea ecx, [0x78f688]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov byte [esp + 0xc], 0
call fcn.004bd2c0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4be4cf
lea eax, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x13
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x4be4bf
lea eax, [0x799371]
mov dword [edi], eax
jmp 0x4be558
lea eax, [0x799371]
call fcn.0044c9e0
jmp 0x4be558
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
lea ecx, [0x78f66d]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov byte [esp + 0xc], 0
call fcn.004bd2c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x4be48f
xor ebx, ebx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
jmp 0x4be2ba
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea eax, [0x7fe200]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
lea eax, [0x743740]
mov dword [esp], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
call fcn.004073b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004275c0
ud2
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea eax, [0x7fe200]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
lea eax, [0x743740]
mov dword [esp], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.004073b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004275c0
ud2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
lea eax, [0x743740]
mov dword [esp], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
call fcn.004073b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004275c0
ud2
call fcn.0044b280
jmp fcn.004be220