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

Disassembly:
mov ecx, dword [0x5efcb0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x58]
cmp eax, dword [ecx + 8]
jbe 0x4be953
sub esp, 0xd8
lea eax, [0x5cfb40]
mov dword [esp + 0x70], eax
mov dword [0x5cfb44], 5
mov eax, dword [0x5efdd0]
test eax, eax
je 0x4be2de
jmp 0x4be2e0
jmp 0x4be2ef
mov eax, dword [0x5cfb40]
call fcn.004757b0
mov dword [edi], eax
jmp 0x4be2ef
lea eax, [0x526dda]
mov dword [0x5cfb40], eax
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0xdc]
test byte [eax], al
movzx eax, word [eax + 0x46]
test ax, ax
ja 0x4be317
jmp 0x4be321
mov dword [esp + 0x34], 2
jmp 0x4be323
jmp 0x4be323
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
lea edx, [0x518720]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004711a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], edx
mov ebx, dword [esp + 0x70]
test byte [ebx], al
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edx
mov ecx, dword [0x5efdd0]
test ecx, ecx
je 0x4be37a
jmp 0x4be37c
jmp 0x4be38b
call fcn.004757c0
mov dword [edi], eax
mov ecx, dword [ebx + 8]
mov dword [edi + 4], ecx
jmp 0x4be38b
mov dword [ebx + 8], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
call fcn.004bdc40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ebx
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x70]
test byte [eax], al
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
test ecx, ecx
ja 0x4be46e
jmp 0x4be94b
mov dword [esp + 0x6c], eax
test byte [eax], al
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [eax + 4], ebx
mov ebx, dword [0x5efdd0]
test ebx, ebx
je 0x4be48b
jmp 0x4be48d
jmp 0x4be49b
call fcn.004757c0
mov dword [edi], edx
mov ebx, dword [eax]
mov dword [edi + 4], ebx
jmp 0x4be49b
mov dword [eax], edx
cmp dword [esp + 0x34], 1
je 0x4be4a9
jmp 0x4be5cd
mov eax, dword [esp + 0x6c]
test byte [eax], al
mov ecx, dword [esp + 0xdc]
test byte [ecx], al
mov ecx, dword [ecx]
neg ecx
imul ecx, ecx, 0x3c
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x70]
test byte [eax], al
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0x80000000
mov eax, dword [esp + 0x70]
test byte [eax], al
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0x7fffffff
mov eax, dword [esp + 0x70]
test byte [eax], al
mov ecx, dword [0x5efdd0]
mov edx, dword [esp + 0x6c]
test ecx, ecx
je 0x4be500
jmp 0x4be502
jmp 0x4be511
call fcn.004757c0
mov dword [edi], edx
mov ecx, dword [eax + 0x38]
mov dword [edi + 4], ecx
jmp 0x4be511
mov dword [eax + 0x38], edx
lea eax, [0x51a960]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004711a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], 1
mov ecx, dword [esp + 0x70]
test byte [ecx], al
mov dword [ecx + 0x18], 1
mov dword [ecx + 0x1c], 1
mov edx, dword [0x5efdd0]
test edx, edx
je 0x4be573
jmp 0x4be575
jmp 0x4be584
call fcn.004757c0
mov dword [edi], eax
mov edx, dword [ecx + 0x14]
mov dword [edi + 4], edx
jmp 0x4be584
mov dword [ecx + 0x14], eax
mov edx, dword [esp + 0x70]
test byte [edx], al
mov ecx, dword [edx + 0x18]
mov edx, dword [edx + 0x14]
mov ebx, dword [esp + 0x70]
test byte [ebx], al
mov ebp, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x2c]
test ecx, ecx
ja 0x4be5a8
jmp 0x4be944
mov dword [edx], ebp
mov dword [edx + 4], ebx
mov edx, dword [esp + 0x70]
test byte [edx], al
mov ecx, dword [edx + 0x18]
mov edx, dword [edx + 0x14]
test ecx, ecx
ja 0x4be5c2
jmp 0x4be93d
mov byte [edx + 8], 0
add esp, 0xd8
ret
mov edx, dword [esp + 0x6c]
test byte [edx], al
mov ebx, dword [esp + 0xdc]
test byte [ebx], al
mov ebx, dword [ebx]
mov ebp, dword [esp + 0xdc]
test byte [ebp], al
add ebx, dword [ebp + 0x54]
neg ebx
imul ebx, ebx, 0x3c
mov dword [edx + 8], ebx
mov edx, dword [esp + 0x70]
test byte [edx], al
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
cmp ecx, 1
ja 0x4be609
jmp 0x4be933
lea eax, [edx + 0x10]
mov dword [esp + 0x7c], eax
test byte [eax], al
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [0x5efdd0]
test edx, edx
je 0x4be629
jmp 0x4be62b
jmp 0x4be639
call fcn.004757c0
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
jmp 0x4be639
mov dword [eax], ecx
mov eax, dword [esp + 0x7c]
test byte [eax], al
mov ecx, dword [esp + 0xdc]
test byte [ecx], al
mov ecx, dword [ecx]
mov edx, dword [esp + 0xdc]
test byte [edx], al
add ecx, dword [edx + 0xa8]
neg ecx
imul ecx, ecx, 0x3c
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x7c]
test byte [eax], al
mov byte [eax + 0xc], 1
mov eax, dword [esp + 0xdc]
test byte [eax], al
add eax, 0x44
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xdc]
test byte [eax], al
add eax, 0x98
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 1
test byte [eax], al
mov ecx, dword [esp + 0x84]
test byte [ecx], al
movzx ecx, word [ecx + 2]
cmp word [eax + 2], cx
jb 0x4be6bc
jmp 0x4be6fc
mov eax, dword [esp + 0x84]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
jmp 0x4be6fe
jmp 0x4be6fe
lea eax, [0x51a960]
mov dword [esp], eax
mov dword [esp + 4], 0x190
mov dword [esp + 8], 0x190
call fcn.004711a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0x190
mov dword [esp + 0xb8], 0x190
mov ecx, dword [esp + 0x70]
test byte [ecx], al
mov dword [ecx + 0x18], 0x190
mov dword [ecx + 0x1c], 0x190
mov edx, dword [0x5efdd0]
test edx, edx
je 0x4be75d
jmp 0x4be75f
jmp 0x4be76e
call fcn.004757c0
mov dword [edi], eax
mov edx, dword [ecx + 0x14]
mov dword [edi + 4], edx
jmp 0x4be76e
mov dword [ecx + 0x14], eax
call fcn.004c1c40
lea edi, [esp + 0x9c]
lea esi, [esp]
call fcn.00475eee
lea edi, [esp]
lea esi, [esp + 0x9c]
call fcn.00475eee
call fcn.004b8d10
lea edi, [esp + 0x50]
lea esi, [esp + 0x14]
call fcn.00475eee
lea edi, [esp]
lea esi, [esp + 0x50]
call fcn.00475eee
call fcn.004b7ca0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
add eax, 0xffffff9c
mov dword [esp + 0x2c], eax
jmp 0x4be7d0
mov edx, dword [esp + 0x28]
add edx, 0x64
cmp dword [esp + 0x2c], edx
jl 0x4be7e2
jmp 0x4be910
mov edx, dword [esp + 0x70]
test byte [edx], al
mov ecx, dword [edx + 0x18]
mov edx, dword [edx + 0x14]
mov eax, dword [esp + 0x30]
cmp ecx, eax
ja 0x4be7fb
jmp 0x4be92e
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004be0c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x70]
test byte [edx], al
mov ebx, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov ebp, dword [esp + 0x38]
cmp ebx, ebp
ja 0x4be845
jmp 0x4be925
mov ebx, dword [esp + 0x4c]
test byte [ebx], al
shl ebp, 4
lea edx, [edx + ebp + 8]
mov edx, dword [edx]
mov ebp, edx
sar edx, 0x1f
sub eax, ebp
mov dword [ebx], eax
sbb ecx, edx
mov dword [ebx + 4], ecx
mov edx, dword [esp + 0x4c]
test byte [edx], al
mov ebx, dword [esp + 0x3c]
mov byte [edx + 8], bl
mov edx, dword [esp + 0x30]
lea eax, [edx + 1]
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x70]
test byte [ebx], al
mov ecx, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x14]
cmp ecx, eax
ja 0x4be88f
jmp 0x4be920
lea eax, [edx + edx*2]
lea eax, [ebx + eax*4 + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004be0c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x70]
test byte [edx], al
mov ebx, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov ebp, dword [esp + 0x3c]
cmp ebx, ebp
ja 0x4be8d7
jmp 0x4be917
mov ebx, dword [esp + 0x4c]
test byte [ebx], al
shl ebp, 4
lea edx, [edx + ebp + 8]
mov edx, dword [edx]
mov ebp, edx
sar edx, 0x1f
sub eax, ebp
mov dword [ebx], eax
sbb ecx, edx
mov dword [ebx + 4], ecx
mov edx, dword [esp + 0x4c]
test byte [edx], al
mov ebx, dword [esp + 0x38]
mov byte [edx + 8], bl
inc dword [esp + 0x30]
jmp 0x4be907
inc dword [esp + 0x2c]
jmp 0x4be7d0
add esp, 0xd8
ret
mov eax, ebp
mov ecx, ebx
call fcn.00475830
call fcn.00475830
mov eax, ebp
mov ecx, ebx
call fcn.00475830
call fcn.00475830
mov eax, 1
call fcn.00475830
xor eax, eax
call fcn.00475830
xor eax, eax
call fcn.00475830
xor eax, eax
call fcn.00475830
nop
call fcn.004743b0
jmp fcn.004be2a0