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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x68]
cmp eax, dword [ecx + 8]
jbe 0x4bf056
sub esp, 0xe8
mov eax, dword [esp + 0xfc]
mov ebx, dword [esp + 0x108]
cmp eax, ebx
jl 0x4bef40
test eax, eax
je 0x4bef12
test ebx, ebx
je 0x4bef12
cmp ebx, 1
je 0x4bee96
mov ebp, dword [esp + 0xf4]
test ebp, ebp
jle 0x4bee84
mov esi, dword [esp + 0xec]
lea edi, [esi + ebp*4 - 4]
mov edx, dword [esp + 0x100]
mov ecx, eax
mov eax, dword [esp + 0xf8]
lea eax, [eax + edx*4 - 4]
cmp edi, eax
jne 0x4bee41
xor eax, eax
xor ebp, ebp
mov esi, dword [0x5f80f4]
cmp ebx, esi
jl 0x4becf5
mov dword [esp + 0xe4], ebp
nop
mov edi, ebx
xor ebx, ebx
mov dword [esp + 0x80], ebx
mov ebx, edi
jmp 0x4be666
sar ebx, 1
mov ebp, dword [esp + 0x80]
inc ebp
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0xe4]
cmp esi, ebx
jl 0x4be64e
mov esi, dword [esp + 0x80]
cmp esi, 0x20
sbb ebp, ebp
mov ecx, esi
shl ebx, cl
and ebx, ebp
cmp ebx, edx
ja 0x4bf035
mov ebp, dword [esp + 0x10c]
cmp ebx, ebp
ja 0x4bf02c
lea esi, [ebx + ebx*2]
mov ecx, esi
shl esi, 1
mov ebp, dword [esp + 0xfc]
add ebp, edi
cmp esi, ebp
jle 0x4becee
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x88], ebp
cmp esi, eax
jg 0x4bec62
ja 0x4bf023
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xf4], eax
mov ecx, dword [esp + 0xec]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov ebp, dword [esp + 0xf8]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x104]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x10c]
mov dword [esp + 0x20], edi
call fcn.004bdde0
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0x88]
cmp edx, ecx
jb 0x4bf01e
mov eax, dword [esp + 0x58]
mov ebx, eax
shl eax, 1
cmp ecx, eax
jb 0x4bf019
sub edx, eax
mov esi, edx
neg edx
shl ebx, 3
sar edx, 0x1f
and ebx, edx
mov edx, dword [esp + 0xec]
add ebx, edx
mov dword [esp], ebx
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.004bcd10
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jg 0x4be7f1
mov ebx, dword [esp + 0xfc]
cmp ebx, eax
jne 0x4be7f1
mov ebp, dword [esp + 0x88]
mov ebx, dword [esp + 0xec]
mov eax, ebp
jmp 0x4be7af
mov ebp, esi
test ebp, ebp
jle 0x4be7c6
lea esi, [ebp - 1]
cmp eax, esi
jbe 0x4befc8
mov edi, dword [ebx + ebp*4 - 4]
test edi, edi
je 0x4be7ad
mov edx, dword [esp + 0xf4]
cmp edx, ebp
jb 0x4befc1
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebp
mov dword [esp + 0x118], edx
add esp, 0xe8
ret
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
call fcn.004c0580
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x70], ebx
nop
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0xf8]
mov edi, ebp
jmp 0x4be826
mov ebp, ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x5c], ebp
test ebp, ebp
jle 0x4be841
lea ebx, [ebp - 1]
cmp edi, ebx
jbe 0x4bf010
mov ebp, dword [esi + ebp*4 - 4]
test ebp, ebp
je 0x4be820
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x100]
cmp ebx, ebp
ja 0x4bf007
mov ebp, dword [esp + 0x108]
cmp ebp, edi
jb 0x4beffe
mov dword [esp + 0xd0], eax
mov dword [esp], ecx
mov dword [esp + 4], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x100]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10c]
sub ecx, edi
mov dword [esp + 0x50], ecx
mov ebx, ecx
neg ecx
shl edi, 2
sar ecx, 0x1f
and edi, ecx
mov ecx, dword [esp + 0x104]
add edi, ecx
mov dword [esp + 0xcc], edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x58]
sub ebp, edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
call fcn.004be5a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0xdc], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0xec]
mov dword [esp], ebx
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0xf4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x58]
mov dword [esp + 0x18], edi
call fcn.004be490
nop
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x104]
mov edx, eax
jmp 0x4be936
mov eax, ebx
test eax, eax
jle 0x4be94d
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x4beff5
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x4be934
mov ebx, dword [esp + 0x10c]
cmp eax, ebx
ja 0x4befec
mov dword [esp + 0x54], eax
mov ebp, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
mov edi, dword [esp + 0x100]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], ecx
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0xdc]
mov dword [esp + 0xe0], edx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa8]
jmp 0x4bebec
mov ebx, dword [esp + 0x10c]
mov ebp, esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x34], ebp
test ebp, ebp
jle 0x4be9ee
lea esi, [ebp - 1]
mov ebx, dword [esp + 0x48]
cmp esi, ebx
jae 0x4befda
mov ebp, dword [edi + ebp*4 - 4]
test ebp, ebp
je 0x4be9c2
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
cmp ebx, ebp
jb 0x4befd1
mov dword [esp + 0xc8], edi
mov edx, dword [esp + 0xe0]
mov dword [esp], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x20], edx
call fcn.004be5a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x78], edx
mov ebx, dword [esp + 0xec]
mov dword [esp], ebx
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0xf4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x84]
mov dword [esp + 0x18], edi
call fcn.004be490
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], edx
call fcn.004be5a0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xd8], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0xec]
mov dword [esp], ebx
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0xf4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x84]
mov esi, dword [esp + 0x58]
add edi, esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x18], edi
call fcn.004be490
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
mov ebx, dword [esp + 0x100]
mov ebp, dword [esp + 0xd8]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x104]
mov ebx, dword [esp + 0x10c]
mov ebp, dword [esp + 0xf8]
mov esi, edx
mov edi, dword [esp + 0x100]
mov edx, dword [esp + 0x84]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0xd8]
mov dword [esp + 0xe0], edi
mov ebp, dword [esp + 0xf8]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x100]
cmp esi, edx
jle 0x4bec3a
jb 0x4befe3
mov dword [esp + 0x84], edx
sub edi, edx
mov dword [esp + 0x40], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
shl edx, 2
sar edi, 0x1f
and edx, edi
lea edi, [edx + ebp]
mov edx, ebp
mov ebp, dword [esp + 0x84]
sub esi, ebp
mov ebp, dword [esp + 0x58]
cmp ebp, esi
jge 0x4bec32
mov esi, ebp
mov dword [esp + 0x48], ebp
jmp 0x4be9cf
mov ebp, esi
mov esi, dword [esp + 0x58]
jmp 0x4bec29
lea eax, [0x61ed60]
mov dword [esp], eax
lea eax, [0x532600]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
call fcn.00463600
jmp 0x4be79b
cmp esi, 1
jne 0x4becaa
lea eax, [0x51ad60]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00442650
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x100]
mov ebx, dword [esp + 0x58]
mov eax, 1
mov dword [esp + 0xec], ebp
mov esi, 1
jmp 0x4be6e7
mov dword [esp + 0x30], esi
lea eax, [0x51ad60]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.00442650
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x100]
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xec], ebp
mov esi, dword [esp + 0x30]
jmp 0x4be6e7
mov esi, ebp
jmp 0x4be6ab
lea esi, [ecx + ebx]
cmp esi, eax
jg 0x4bedae
ja 0x4bf04c
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebp
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov edi, dword [esp + 0xf8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x20], ecx
call fcn.004bd700
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, eax
jmp 0x4bed6c
mov eax, ebx
test eax, eax
jle 0x4bed83
lea ebx, [eax - 1]
cmp ebx, edx
jae 0x4bf043
mov ebp, dword [ecx + eax*4 - 4]
test ebp, ebp
je 0x4bed6a
mov edx, dword [esp + 0xf4]
cmp eax, edx
ja 0x4bf03c
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], edx
add esp, 0xe8
ret
cmp esi, 1
jne 0x4bedf9
lea eax, [0x51ad60]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00442650
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0x100]
mov ebx, dword [esp + 0x108]
mov eax, 1
mov esi, 1
jmp 0x4bed06
mov dword [esp + 0x38], esi
lea eax, [0x51ad60]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [ebx + ecx + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 8], eax
call fcn.00442650
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0x100]
mov ebx, dword [esp + 0x108]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
jmp 0x4bed06
test ebp, ebp
jle 0x4bee7b
lea eax, [esi + ebp*4 - 4]
mov edi, dword [esp + 0x10c]
mov ebx, dword [esp + 0x104]
lea ebx, [ebx + edi*4 - 4]
cmp eax, ebx
jne 0x4bee6b
mov ebx, dword [esp + 0x108]
jmp 0x4be625
mov ebx, dword [esp + 0x108]
mov eax, ebp
mov ebp, esi
jmp 0x4be629
mov edi, dword [esp + 0x10c]
jmp 0x4bee6b
mov ecx, eax
mov edx, dword [esp + 0x100]
mov esi, dword [esp + 0xec]
jmp 0x4bee43
mov ecx, dword [esp + 0x104]
mov ecx, dword [ecx]
mov edx, dword [esp + 0xec]
mov dword [esp], edx
mov edx, dword [esp + 0xf0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xf4]
mov dword [esp + 8], edx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
call fcn.004bd540
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
add esp, 0xe8
ret
mov eax, dword [esp + 0xec]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], 0
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x118], eax
add esp, 0xe8
ret
mov ecx, dword [esp + 0xec]
mov dword [esp], ecx
mov ecx, dword [esp + 0xf0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x20], eax
call fcn.004be5a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
add esp, 0xe8
ret
mov ecx, ebp
call fcn.0045a740
mov ecx, eax
mov eax, esi
call fcn.0045a700
mov ecx, ebp
mov edx, ebx
call fcn.0045a740
mov eax, esi
mov ecx, ebx
call fcn.0045a700
mov eax, edx
mov ecx, esi
call fcn.0045a760
mov ecx, eax
mov edx, ebx
call fcn.0045a740
mov eax, ebx
mov ecx, edx
call fcn.0045a700
mov eax, edi
mov ecx, ebp
call fcn.0045a760
mov ecx, ebx
mov edx, ebp
call fcn.0045a740
mov eax, ebx
mov ecx, edi
call fcn.0045a700
call fcn.0045a760
call fcn.0045a740
mov ecx, esi
mov edx, eax
call fcn.0045a740
mov ecx, ebx
mov edx, ebp
call fcn.0045a740
mov ecx, ebx
call fcn.0045a740
mov ecx, eax
call fcn.0045a740
mov eax, ebx
mov ecx, edx
call fcn.0045a700
mov ecx, esi
mov edx, eax
call fcn.0045a740
nop
call fcn.00459120
jmp fcn.004be5a0